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/20160615-154255 base: https://git.kernel.org/pub/scm/linux/kernel/git/tj/libata for-next config: sparc64-allyesconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 5.3.1-8) 5.3.1 20160205 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=sparc64 All error/warnings (new ones prefixed by >>): In file included from include/linux/linkage.h:6: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': >> include/linux/export.h:57:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] extern typeof(sym) sym; \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ >> drivers/ata/libata-eh.c:836:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_scsi_port_error_handler); ^ include/linux/export.h:63:25: warning: '__used__' attribute ignored [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ >> drivers/ata/libata-eh.c:836:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_scsi_port_error_handler); ^ include/linux/export.h:63:39: error: section attribute cannot be specified for local variables __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ >> drivers/ata/libata-eh.c:836:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_scsi_port_error_handler); ^ include/linux/export.h:63:25: warning: 'externally_visible' attribute have effect only on public objects [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ >> drivers/ata/libata-eh.c:836:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_scsi_port_error_handler); ^ >> include/linux/export.h:63:39: error: declaration of '__ksymtab_ata_scsi_port_error_handler' with no linkage follows extern declaration __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ >> drivers/ata/libata-eh.c:836:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_scsi_port_error_handler); ^ include/linux/export.h:62:36: note: previous declaration of '__ksymtab_ata_scsi_port_error_handler' was here extern const struct kernel_symbol __ksymtab_##sym; \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ >> drivers/ata/libata-eh.c:836:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_scsi_port_error_handler); ^ >> drivers/ata/libata-eh.c:871:19: error: non-static declaration of 'ata_port_wait_eh' follows static declaration EXPORT_SYMBOL_GPL(ata_port_wait_eh); ^ include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL' extern typeof(sym) sym; \ ^ drivers/ata/libata-eh.c:871:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_port_wait_eh); ^ drivers/ata/libata-eh.c:847:6: note: previous definition of 'ata_port_wait_eh' was here void ata_port_wait_eh(struct ata_port *ap) ^ In file included from include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from drivers/ata/libata-eh.c:35: include/linux/export.h:63:25: warning: '__used__' attribute ignored [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:871:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_port_wait_eh); ^ include/linux/export.h:63:39: error: section attribute cannot be specified for local variables __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:871:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_port_wait_eh); ^ include/linux/export.h:63:25: warning: 'externally_visible' attribute have effect only on public objects [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:871:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_port_wait_eh); ^ >> include/linux/export.h:63:39: error: declaration of '__ksymtab_ata_port_wait_eh' with no linkage follows extern declaration __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:871:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_port_wait_eh); ^ include/linux/export.h:62:36: note: previous declaration of '__ksymtab_ata_port_wait_eh' was here extern const struct kernel_symbol __ksymtab_##sym; \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:871:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_port_wait_eh); ^ >> drivers/ata/libata-eh.c:873:12: error: invalid storage class for function 'ata_eh_nr_in_flight' static int ata_eh_nr_in_flight(struct ata_port *ap) ^ >> drivers/ata/libata-eh.c:937:13: error: invalid storage class for function 'ata_eh_set_pending' static void ata_eh_set_pending(struct ata_port *ap, int fastdrain) ^ In file included from include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from drivers/ata/libata-eh.c:35: >> drivers/ata/libata-eh.c:1012:19: error: non-static declaration of 'ata_std_sched_eh' follows static declaration EXPORT_SYMBOL_GPL(ata_std_sched_eh); ^ include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL' extern typeof(sym) sym; \ ^ drivers/ata/libata-eh.c:1012:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_std_sched_eh); ^ drivers/ata/libata-eh.c:1000:6: note: previous definition of 'ata_std_sched_eh' was here void ata_std_sched_eh(struct ata_port *ap) ^ In file included from include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from drivers/ata/libata-eh.c:35: include/linux/export.h:63:25: warning: '__used__' attribute ignored [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:1012:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_std_sched_eh); ^ include/linux/export.h:63:39: error: section attribute cannot be specified for local variables __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:1012:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_std_sched_eh); ^ include/linux/export.h:63:25: warning: 'externally_visible' attribute have effect only on public objects [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:1012:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_std_sched_eh); ^ >> include/linux/export.h:63:39: error: declaration of '__ksymtab_ata_std_sched_eh' with no linkage follows extern declaration __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:1012:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_std_sched_eh); ^ include/linux/export.h:62:36: note: previous declaration of '__ksymtab_ata_std_sched_eh' was here extern const struct kernel_symbol __ksymtab_##sym; \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:101:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "_gpl") ^ drivers/ata/libata-eh.c:1012:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL' EXPORT_SYMBOL_GPL(ata_std_sched_eh); ^ >> drivers/ata/libata-eh.c:1032:15: error: non-static declaration of 'ata_std_end_eh' follows static declaration EXPORT_SYMBOL(ata_std_end_eh); ^ include/linux/export.h:57:21: note: in definition of macro '___EXPORT_SYMBOL' extern typeof(sym) sym; \ ^ >> drivers/ata/libata-eh.c:1032:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(ata_std_end_eh); ^ drivers/ata/libata-eh.c:1026:6: note: previous definition of 'ata_std_end_eh' was here void ata_std_end_eh(struct ata_port *ap) ^ In file included from include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from drivers/ata/libata-eh.c:35: include/linux/export.h:63:25: warning: '__used__' attribute ignored [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:98:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "") ^ >> drivers/ata/libata-eh.c:1032:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(ata_std_end_eh); ^ include/linux/export.h:63:39: error: section attribute cannot be specified for local variables __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:98:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "") ^ >> drivers/ata/libata-eh.c:1032:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(ata_std_end_eh); ^ include/linux/export.h:63:25: warning: 'externally_visible' attribute have effect only on public objects [-Wattributes] __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:98:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "") ^ >> drivers/ata/libata-eh.c:1032:1: note: in expansion of macro 'EXPORT_SYMBOL' EXPORT_SYMBOL(ata_std_end_eh); ^ >> include/linux/export.h:63:39: error: declaration of '__ksymtab_ata_std_end_eh' with no linkage follows extern declaration __visible const struct kernel_symbol __ksymtab_##sym \ ^ include/linux/export.h:94:25: note: in expansion of macro '___EXPORT_SYMBOL' #define __EXPORT_SYMBOL ___EXPORT_SYMBOL ^ include/linux/export.h:98:2: note: in expansion of macro '__EXPORT_SYMBOL' __EXPORT_SYMBOL(sym, "") ^ vim +/__ksymtab_ata_scsi_port_error_handler +63 include/linux/export.h f5016932 Paul Gortmaker 2011-05-23 51 #else f5016932 Paul Gortmaker 2011-05-23 52 #define __CRC_SYMBOL(sym, sec) f5016932 Paul Gortmaker 2011-05-23 53 #endif f5016932 Paul Gortmaker 2011-05-23 54 f5016932 Paul Gortmaker 2011-05-23 55 /* For every exported symbol, place a struct in the __ksymtab section */ f2355416 Nicolas Pitre 2016-01-22 56 #define ___EXPORT_SYMBOL(sym, sec) \ f5016932 Paul Gortmaker 2011-05-23 @57 extern typeof(sym) sym; \ f5016932 Paul Gortmaker 2011-05-23 58 __CRC_SYMBOL(sym, sec) \ f5016932 Paul Gortmaker 2011-05-23 59 static const char __kstrtab_##sym[] \ f5016932 Paul Gortmaker 2011-05-23 60 __attribute__((section("__ksymtab_strings"), aligned(1))) \ b92021b0 Rusty Russell 2013-03-15 61 = VMLINUX_SYMBOL_STR(sym); \ 7b4ec8dd Johannes Berg 2014-01-16 62 extern const struct kernel_symbol __ksymtab_##sym; \ e0f244c6 Andi Kleen 2013-10-23 @63 __visible const struct kernel_symbol __ksymtab_##sym \ f5016932 Paul Gortmaker 2011-05-23 64 __used \ f5016932 Paul Gortmaker 2011-05-23 65 __attribute__((section("___ksymtab" sec "+" #sym), unused)) \ f5016932 Paul Gortmaker 2011-05-23 66 = { (unsigned long)&sym, __kstrtab_##sym } f5016932 Paul Gortmaker 2011-05-23 67 c1a95fda Nicolas Pitre 2016-01-22 68 #if defined(__KSYM_DEPS__) c1a95fda Nicolas Pitre 2016-01-22 69 c1a95fda Nicolas Pitre 2016-01-22 70 /* c1a95fda Nicolas Pitre 2016-01-22 71 * For fine grained build dependencies, we want to tell the build system c1a95fda Nicolas Pitre 2016-01-22 72 * about each possible exported symbol even if they're not actually exported. c1a95fda Nicolas Pitre 2016-01-22 73 * We use a string pattern that is unlikely to be valid code that the build c1a95fda Nicolas Pitre 2016-01-22 74 * system filters out from the preprocessor output (see ksym_dep_filter c1a95fda Nicolas Pitre 2016-01-22 75 * in scripts/Kbuild.include). c1a95fda Nicolas Pitre 2016-01-22 76 */ c1a95fda Nicolas Pitre 2016-01-22 77 #define __EXPORT_SYMBOL(sym, sec) === __KSYM_##sym === c1a95fda Nicolas Pitre 2016-01-22 78 c1a95fda Nicolas Pitre 2016-01-22 79 #elif defined(CONFIG_TRIM_UNUSED_KSYMS) f2355416 Nicolas Pitre 2016-01-22 80 f2355416 Nicolas Pitre 2016-01-22 81 #include <linux/kconfig.h> f2355416 Nicolas Pitre 2016-01-22 82 #include <generated/autoksyms.h> f2355416 Nicolas Pitre 2016-01-22 83 f2355416 Nicolas Pitre 2016-01-22 84 #define __EXPORT_SYMBOL(sym, sec) \ f2355416 Nicolas Pitre 2016-01-22 85 __cond_export_sym(sym, sec, config_enabled(__KSYM_##sym)) f2355416 Nicolas Pitre 2016-01-22 86 #define __cond_export_sym(sym, sec, conf) \ f2355416 Nicolas Pitre 2016-01-22 87 ___cond_export_sym(sym, sec, conf) f2355416 Nicolas Pitre 2016-01-22 88 #define ___cond_export_sym(sym, sec, enabled) \ f2355416 Nicolas Pitre 2016-01-22 89 __cond_export_sym_##enabled(sym, sec) f2355416 Nicolas Pitre 2016-01-22 90 #define __cond_export_sym_1(sym, sec) ___EXPORT_SYMBOL(sym, sec) f2355416 Nicolas Pitre 2016-01-22 91 #define __cond_export_sym_0(sym, sec) /* nothing */ f2355416 Nicolas Pitre 2016-01-22 92 f2355416 Nicolas Pitre 2016-01-22 93 #else f2355416 Nicolas Pitre 2016-01-22 @94 #define __EXPORT_SYMBOL ___EXPORT_SYMBOL f2355416 Nicolas Pitre 2016-01-22 95 #endif f2355416 Nicolas Pitre 2016-01-22 96 f5016932 Paul Gortmaker 2011-05-23 97 #define EXPORT_SYMBOL(sym) \ :::::: The code at line 63 was first introduced by commit :::::: e0f244c63fc9d192dfd399cc2677bbdca61994b1 asmlinkage, module: Make ksymtab and kcrctab symbols and __this_module __visible :::::: TO: Andi Kleen <ak@xxxxxxxxxxxxxxx> :::::: CC: Rusty Russell <rusty@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: Binary data