lkml.org 
[lkml]   [2016]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V2] libata:fix kernel panic when hotplug
Hi,

[auto build test WARNING on tj-libata/for-next]
[also build test WARNING on v4.7-rc3 next-20160616]
[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-06161418 (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 warnings (new ones prefixed by >>):

In file included from include/linux/linkage.h:4:0,
from include/linux/kernel.h:6,
from drivers/ata/libata-eh.c:35:
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))
^
include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/ata/libata-eh.c:819:7: note: in expansion of macro 'if'
else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) &&
^~
drivers/ata/libata-eh.c:820:19: note: each undeclared identifier is reported only once for each function it appears in
!(ap->pflags & ATA_PFLAG_SAS_HOST))
^
include/linux/compiler.h:151:30: note: in definition of macro '__trace_if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^~~~
>> drivers/ata/libata-eh.c:819:7: note: in expansion of macro 'if'
else if ((ap->pflags & ATA_PFLAG_SCSI_HOTPLUG) &&
^~

vim +/if +819 drivers/ata/libata-eh.c

803 ap->ops->end_eh(ap);
804
805 spin_unlock_irqrestore(ap->lock, flags);
806 ata_eh_release(ap);
807 } else {
808 WARN_ON(ata_qc_from_tag(ap, ap->link.active_tag) == NULL);
809 ap->ops->eng_timeout(ap);
810 }
811
812 scsi_eh_flush_done_q(&ap->eh_done_q);
813
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)
824 ata_port_info(ap, "EH complete\n");
825
826 ap->pflags &= ~(ATA_PFLAG_SCSI_HOTPLUG | ATA_PFLAG_RECOVERED);
827

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2016-06-16 10:01    [W:0.083 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site