Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [jpoimboe:klp-build-v1.5 6/33] arch/arm64/kernel/vdso32/note.c:14:1: error: a parameter list without types is only allowed in a function definition
@ 2024-09-11 10:42 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-09-11 10:42 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-v1.5
head:   2abe29f4f173c4090c0030c43c30053694b1658a
commit: f1cb9326e751c8ea49d315b984a72384794707a0 [6/33] elfnote: Use __UNIQUE_ID() for note symbols
config: arm64-allyesconfig (https://download.01.org/0day-ci/archive/20240911/202409111829.o0fYCii9-lkp@intel.com/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project bf684034844c660b778f0eba103582f582b710c9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240911/202409111829.o0fYCii9-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/202409111829.o0fYCii9-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from arch/arm64/kernel/asm-offsets.c:10:
   In file included from include/linux/arm_sdei.h:8:
   In file included from include/acpi/ghes.h:5:
   In file included from include/acpi/apei.h:9:
   In file included from include/linux/acpi.h:39:
   In file included from include/acpi/acpi_io.h:7:
   In file included from arch/arm64/include/asm/acpi.h:14:
   In file included from include/linux/memblock.h:12:
   In file included from include/linux/mm.h:2232:
   include/linux/vmstat.h:503:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     503 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     504 |                            item];
         |                            ~~~~
   include/linux/vmstat.h:510:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     510 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     511 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   include/linux/vmstat.h:517:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     517 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   include/linux/vmstat.h:523:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
     523 |         return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~ ^
     524 |                            NR_VM_NUMA_EVENT_ITEMS +
         |                            ~~~~~~~~~~~~~~~~~~~~~~
   4 warnings generated.
>> arch/arm64/kernel/vdso32/note.c:14:1: error: a parameter list without types is only allowed in a function definition
      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:76:16: note: expanded from macro 'ELFNOTE'
      76 |         } __UNIQUE_ID(note)                                             \
         |                       ^
>> arch/arm64/kernel/vdso32/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/arm64/kernel/vdso32/note.c:15:1: error: a parameter list without types is only allowed in a function definition
      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:76:16: note: expanded from macro 'ELFNOTE'
      76 |         } __UNIQUE_ID(note)                                             \
         |                       ^
   arch/arm64/kernel/vdso32/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)                                             \
         |           ^
   4 errors generated.
   make[3]: *** [arch/arm64/kernel/vdso32/Makefile:144: arch/arm64/kernel/vdso32/note.o] Error 1
   make[3]: Target 'arch/arm64/kernel/vdso32/vdso.so' not remade because of errors.
   make[2]: *** [arch/arm64/Makefile:218: vdso_prepare] Error 2
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:224: __sub-make] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:224: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +14 arch/arm64/kernel/vdso32/note.c

a7f71a2c8903f8 Vincenzo Frascino 2019-06-21  13  
a7f71a2c8903f8 Vincenzo Frascino 2019-06-21 @14  ELFNOTE32("Linux", 0, LINUX_VERSION_CODE);

:::::: The code at line 14 was first introduced by commit
:::::: a7f71a2c8903f8599312f75233946287c558d9f6 arm64: compat: Add vDSO

:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

-- 
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-09-11 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-11 10:42 [jpoimboe:klp-build-v1.5 6/33] arch/arm64/kernel/vdso32/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