From: kernel test robot <lkp@intel.com>
To: Eric Biggers <ebiggers@google.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ebiggers:crc32-lib 19/33] lib/crc32.c:342:5: error: expected identifier or '('
Date: Sat, 26 Oct 2024 03:44:53 +0800 [thread overview]
Message-ID: <202410260329.Irc7bUKL-lkp@intel.com> (raw)
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
reply other threads:[~2024-10-25 19:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202410260329.Irc7bUKL-lkp@intel.com \
--to=lkp@intel.com \
--cc=ebiggers@google.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox