Re: [PATCH V2] libata:fix kernel panic when hotplug

From: kbuild test robot
Date: Wed Jun 15 2016 - 23:29:56 EST


Hi,

[auto build test ERROR on tj-libata/for-next]
[also build test ERROR on v4.7-rc3 next-20160615]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/DingXiang/libata-fix-kernel-panic-when-hotplug/20160616-105155
base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/libata for-next
config: x86_64-randconfig-s5-06161042 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/ata/libata-eh.c: In function 'ata_scsi_port_error_handler':
>> drivers/ata/libata-eh.c:820:19: error: 'ATA_PFLAG_SAS_HOST' undeclared (first use in this function)
!(ap->pflags & ATA_PFLAG_SAS_HOST))
^~~~~~~~~~~~~~~~~~
drivers/ata/libata-eh.c:820:19: note: each undeclared identifier is reported only once for each function it appears in

vim +/ATA_PFLAG_SAS_HOST +820 drivers/ata/libata-eh.c

814 /* clean up */
815 spin_lock_irqsave(ap->lock, flags);
816
817 if (ap->pflags & ATA_PFLAG_LOADING)
818 ap->pflags &= ~ATA_PFLAG_LOADING;
819 else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) &&
> 820 !(ap->pflags & ATA_PFLAG_SAS_HOST))
821 schedule_delayed_work(&ap->hotplug_task, 0);
822
823 if (ap->pflags & ATA_PFLAG_RECOVERED)

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: Binary data