* [ebiggers:crc32-lib 19/33] lib/crc32.c:342:5: error: expected identifier or '('
@ 2024-10-25 19:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-10-25 19:44 UTC (permalink / raw)
To: Eric Biggers; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git crc32-lib
head: 173b25426b0584097e1e1a772bc09bf8c0780837
commit: f7f6af3d9ab8c5e851046390ac3f9d67b67a1033 [19/33] lib/crc32: expose whether the lib is really optimized at runtime
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20241026/202410260329.Irc7bUKL-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241026/202410260329.Irc7bUKL-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202410260329.Irc7bUKL-lkp@intel.com/
All errors (new ones prefixed by >>):
>> lib/crc32.c:342:5: error: expected identifier or '('
342 | u32 crc32_optimizations;
| ^
include/linux/crc32.h:52:29: note: expanded from macro 'crc32_optimizations'
52 | #define crc32_optimizations 0
| ^
lib/crc32.c:343:15: error: expected identifier or '('
343 | EXPORT_SYMBOL(crc32_optimizations);
| ^
include/linux/crc32.h:52:29: note: expanded from macro 'crc32_optimizations'
52 | #define crc32_optimizations 0
| ^
>> lib/crc32.c:343:1: error: cannot take the address of an rvalue of type 'int'
343 | EXPORT_SYMBOL(crc32_optimizations);
| ^ ~~~~~~~~~~~~~~~~~~~
include/linux/export.h:68:29: note: expanded from macro 'EXPORT_SYMBOL'
68 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^ ~~~
include/linux/export.h:65:38: note: expanded from macro '_EXPORT_SYMBOL'
65 | #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "")
| ^ ~~~
include/linux/export.h:57:2: note: expanded from macro '__EXPORT_SYMBOL'
57 | __ADDRESSABLE(sym) \
| ^ ~~~
include/linux/compiler.h:229:2: note: expanded from macro '__ADDRESSABLE'
229 | ___ADDRESSABLE(sym, __section(".discard.addressable"))
| ^ ~~~
include/linux/compiler.h:227:64: note: expanded from macro '___ADDRESSABLE'
227 | __UNIQUE_ID(__PASTE(__addressable_,sym)) = (void *)(uintptr_t)&sym;
| ^~~~
3 errors generated.
vim +342 lib/crc32.c
341
> 342 u32 crc32_optimizations;
> 343 EXPORT_SYMBOL(crc32_optimizations);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-25 19:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25 19:44 [ebiggers:crc32-lib 19/33] lib/crc32.c:342:5: error: expected identifier or '(' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox