tree:
git://git.infradead.org/users/hch/block.git sas-atapi-fix
head: af06c6f5072be6e47fa1a4641f5305c112e1d430
commit: 1c4b5642165ae807d42b4a447573620b22445f8e [1/2] libata: provide a
ata_scsi_dma_need_drain stub for !CONFIG_ATA
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 1c4b5642165ae807d42b4a447573620b22445f8e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>, old ones prefixed by <<):
| ^
include/linux/export.h:98:21: note: in definition of macro '___EXPORT_SYMBOL'
98 | extern typeof(sym) sym; | ^~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
include/linux/libata.h:1098:33: note: in expansion of macro 'NULL'
1098 | #define ata_scsi_dma_need_drain NULL
| ^~~~
drivers/ata/libata-scsi.c:1024:19: note: in expansion of macro
'ata_scsi_dma_need_drain'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/export.h:99:20: error: pasting "__kstrtab_" and "(" does
not give a valid preprocessing token
99 | extern const char __kstrtab_##sym[]; | ^~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
include/linux/stddef.h:8:15: error: expected declaration specifiers or '...'
before '(' token
8 | #define NULL ((void *)0)
| ^
include/linux/export.h:99:32: note: in definition of macro '___EXPORT_SYMBOL'
99 | extern const char __kstrtab_##sym[]; |
^~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
include/linux/libata.h:1098:33: note: in expansion of macro 'NULL'
1098 | #define ata_scsi_dma_need_drain NULL
| ^~~~
drivers/ata/libata-scsi.c:1024:19: note: in expansion of macro
'ata_scsi_dma_need_drain'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~~~~~~~
include/linux/export.h:100:20: error: pasting "__kstrtabns_" and "("
does not give a valid preprocessing token
100 | extern const char __kstrtabns_##sym[]; |
^~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
include/linux/stddef.h:8:15: error: expected declaration specifiers or '...'
before '(' token
8 | #define NULL ((void *)0)
| ^
include/linux/export.h:100:34: note: in definition of macro '___EXPORT_SYMBOL'
100 | extern const char __kstrtabns_##sym[]; |
^~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
include/linux/libata.h:1098:33: note: in expansion of macro 'NULL'
1098 | #define ata_scsi_dma_need_drain NULL
| ^~~~
drivers/ata/libata-scsi.c:1024:19: note: in expansion of macro
'ata_scsi_dma_need_drain'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/build_bug.h:5,
from include/linux/bits.h:23,
from arch/arm64/include/asm/sysreg.h:12,
from arch/arm64/include/asm/cputype.h:130,
from arch/arm64/include/asm/cache.h:8,
from include/linux/cache.h:6,
from include/linux/time.h:5,
from include/linux/compat.h:10,
from drivers/ata/libata-scsi.c:16:
> include/linux/compiler.h:355:11: error: pasting
"__addressable_" and "(" does not give a valid preprocessing token
355 | __PASTE(__addressable_##sym, __LINE__) = (void *)&sym;
| ^~~~~~~~~~~~~~
include/linux/export.h:51:2: note: in expansion of macro '__ADDRESSABLE'
51 | __ADDRESSABLE(sym) | ^~~~~~~~~~~~~
include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
In file included from <command-line>:
include/linux/stddef.h:8:15: error: expected declaration specifiers or '...'
before '(' token
8 | #define NULL ((void *)0)
| ^
include/linux/compiler_types.h:53:23: note: in definition of macro '___PASTE'
53 | #define ___PASTE(a,b) a##b
| ^
> include/linux/compiler.h:355:3: note: in expansion of macro
'__PASTE'
355 | __PASTE(__addressable_##sym, __LINE__) = (void
*)&sym;
| ^~~~~~~
include/linux/export.h:51:2: note: in expansion of macro '__ADDRESSABLE'
51 | __ADDRESSABLE(sym) | ^~~~~~~~~~~~~
include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
include/linux/libata.h:1098:33: note: in expansion of macro 'NULL'
1098 | #define ata_scsi_dma_need_drain NULL
| ^~~~
drivers/ata/libata-scsi.c:1024:19: note: in expansion of macro
'ata_scsi_dma_need_drain'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~~~~~~~
> include/linux/stddef.h:8:24: error: pasting ")" and
"1024" does not give a valid preprocessing token
8 | #define NULL ((void
*)0)
| ^
include/linux/compiler_types.h:53:23: note: in definition of macro '___PASTE'
53 | #define ___PASTE(a,b) a##b
| ^
> include/linux/compiler.h:355:3: note: in expansion of macro
'__PASTE'
355 | __PASTE(__addressable_##sym, __LINE__) = (void
*)&sym;
| ^~~~~~~
include/linux/export.h:51:2: note: in expansion of macro '__ADDRESSABLE'
51 | __ADDRESSABLE(sym) | ^~~~~~~~~~~~~
include/linux/export.h:108:2: note: in expansion of macro '__KSYMTAB_ENTRY'
108 | __KSYMTAB_ENTRY(sym, sec)
| ^~~~~~~~~~~~~~~
include/linux/export.h:147:39: note: in expansion of macro '___EXPORT_SYMBOL'
147 | #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns)
| ^~~~~~~~~~~~~~~~
include/linux/export.h:155:34: note: in expansion of macro '__EXPORT_SYMBOL'
155 | #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "")
| ^~~~~~~~~~~~~~~
include/linux/export.h:159:33: note: in expansion of macro '_EXPORT_SYMBOL'
159 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl")
| ^~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1024:1: note: in expansion of macro 'EXPORT_SYMBOL_GPL'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~
include/linux/libata.h:1098:33: note: in expansion of macro 'NULL'
1098 | #define ata_scsi_dma_need_drain NULL
| ^~~~
drivers/ata/libata-scsi.c:1024:19: note: in expansion of macro
'ata_scsi_dma_need_drain'
1024 | EXPORT_SYMBOL_GPL(ata_scsi_dma_need_drain);
| ^~~~~~~~~~~~~~~~~~~~~~~
vim +355 include/linux/compiler.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 346
7290d58095712a Ard Biesheuvel 2018-08-21 347 /*
7290d58095712a Ard Biesheuvel 2018-08-21 348 * Force the compiler to emit
'sym' as a symbol, so that we can reference
7290d58095712a Ard Biesheuvel 2018-08-21 349 * it from inline assembler. Necessary in
case 'sym' could be inlined
7290d58095712a Ard Biesheuvel 2018-08-21 350 * otherwise, or eliminated entirely due
to lack of references that are
7290d58095712a Ard Biesheuvel 2018-08-21 351 * visible to the compiler.
7290d58095712a Ard Biesheuvel 2018-08-21 352 */
7290d58095712a Ard Biesheuvel 2018-08-21 353 #define __ADDRESSABLE(sym) \
bfafddd8de426d Nick Desaulniers 2019-08-28 354 static void *
__section(.discard.addressable) __used \
7290d58095712a Ard Biesheuvel 2018-08-21 @355 __PASTE(__addressable_##sym, __LINE__)
= (void *)&sym;
7290d58095712a Ard Biesheuvel 2018-08-21 356
:::::: The code at line 355 was first introduced by commit
:::::: 7290d58095712a89f845e1bca05334796dd49ed2 module: use relative references for
__ksymtab entries
:::::: TO: Ard Biesheuvel <ard.biesheuvel(a)linaro.org>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org