Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jpoimboe:klp-build 6/38] arch/arm/vdso/note.c:14:1: error: a parameter list without types is only allowed in a function definition
@ 2025-05-07  7:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-07  7:44 UTC (permalink / raw)
  To: Josh Poimboeuf; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git klp-build
head:   efc6506f59755cae4a370a151466c8d3e9e63fa4
commit: a9935a943de283a32d11dbdbc95da2af1b9768c3 [6/38] elfnote: Use __UNIQUE_ID() for note symbols
config: arm-defconfig (https://download.01.org/0day-ci/archive/20250507/202505071526.fS9tpdhX-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071526.fS9tpdhX-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/202505071526.fS9tpdhX-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/arm/vdso/note.c:14:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
      14 | ELFNOTE32("Linux", 0, LINUX_VERSION_CODE);
         | ^
   include/linux/elfnote.h:90:37: note: expanded from macro 'ELFNOTE32'
      90 | #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
         |                                     ^
   include/linux/elfnote.h:70:9: note: expanded from macro 'ELFNOTE'
      70 |         static const struct {                                           \
         |                ^
>> arch/arm/vdso/note.c:14:1: error: a parameter list without types is only allowed in a function definition
   include/linux/elfnote.h:90:37: note: expanded from macro 'ELFNOTE32'
      90 | #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
         |                                     ^
   include/linux/elfnote.h:76:16: note: expanded from macro 'ELFNOTE'
      76 |         } __UNIQUE_ID(note)                                             \
         |                       ^
>> arch/arm/vdso/note.c:14:1: error: illegal initializer (only variables can be initialized)
   include/linux/elfnote.h:90:37: note: expanded from macro 'ELFNOTE32'
      90 | #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
         |                                     ^
   include/linux/elfnote.h:76:4: note: expanded from macro 'ELFNOTE'
      76 |         } __UNIQUE_ID(note)                                             \
         |           ^
   arch/arm/vdso/note.c:15:1: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
      15 | BUILD_SALT;
         | ^
   include/linux/build-salt.h:16:8: note: expanded from macro 'BUILD_SALT'
      16 |        ELFNOTE32("Linux", LINUX_ELFNOTE_BUILD_SALT, CONFIG_BUILD_SALT)
         |        ^
   include/linux/elfnote.h:90:37: note: expanded from macro 'ELFNOTE32'
      90 | #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
         |                                     ^
   include/linux/elfnote.h:70:9: note: expanded from macro 'ELFNOTE'
      70 |         static const struct {                                           \
         |                ^
   arch/arm/vdso/note.c:15:1: error: a parameter list without types is only allowed in a function definition
   include/linux/build-salt.h:16:8: note: expanded from macro 'BUILD_SALT'
      16 |        ELFNOTE32("Linux", LINUX_ELFNOTE_BUILD_SALT, CONFIG_BUILD_SALT)
         |        ^
   include/linux/elfnote.h:90:37: note: expanded from macro 'ELFNOTE32'
      90 | #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
         |                                     ^
   include/linux/elfnote.h:76:16: note: expanded from macro 'ELFNOTE'
      76 |         } __UNIQUE_ID(note)                                             \
         |                       ^
   arch/arm/vdso/note.c:15:1: error: illegal initializer (only variables can be initialized)
   include/linux/build-salt.h:16:8: note: expanded from macro 'BUILD_SALT'
      16 |        ELFNOTE32("Linux", LINUX_ELFNOTE_BUILD_SALT, CONFIG_BUILD_SALT)
         |        ^
   include/linux/elfnote.h:90:37: note: expanded from macro 'ELFNOTE32'
      90 | #define ELFNOTE32(name, type, desc) ELFNOTE(32, name, type, desc)
         |                                     ^
   include/linux/elfnote.h:76:4: note: expanded from macro 'ELFNOTE'
      76 |         } __UNIQUE_ID(note)                                             \
         |           ^
   2 warnings and 4 errors generated.


vim +14 arch/arm/vdso/note.c

20e2fc42312f96 Vincenzo Frascino 2019-11-04  13  
20e2fc42312f96 Vincenzo Frascino 2019-11-04 @14  ELFNOTE32("Linux", 0, LINUX_VERSION_CODE);

:::::: The code at line 14 was first introduced by commit
:::::: 20e2fc42312f960f497ac2d617e3742754e1fa5e ARM: 8930/1: Add support for generic vDSO

:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Russell King <rmk+kernel@armlinux.org.uk>

-- 
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:[~2025-05-07  7:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07  7:44 [jpoimboe:klp-build 6/38] arch/arm/vdso/note.c:14:1: error: a parameter list without types is only allowed in a function definition 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