All of lore.kernel.org
 help / color / mirror / Atom feed
* ./include/linux/cpufeature.h:30:33: error: 'ELF_PLATFORM' undeclared; did you mean 'AT_PLATFORM'?
@ 2026-08-15 12:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-15 12:55 UTC (permalink / raw)
  To: Petr Pavlu; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Petr-Pavlu/x86-Avoid-indirect-includes-through-linux-module-h-linux-elf-h/20260814-084615
head:   3ccb9a11d8a060198e89ba5c32b6f2fa54da6d89
commit: 3ccb9a11d8a060198e89ba5c32b6f2fa54da6d89 module: Limit ELF includes in linux/module.h to uapi/linux/elf.h
date:   2 days ago
config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260815/202608151415.UAbFbpvE-lkp@intel.com/config)
compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260815/202608151415.UAbFbpvE-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/202608151415.UAbFbpvE-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/base/cpu.c:19:
   drivers/base/cpu.c: In function 'print_cpu_modalias':
>> ./include/linux/cpufeature.h:30:33: error: 'ELF_PLATFORM' undeclared (first use in this function); did you mean 'AT_PLATFORM'?
      30 | #define CPU_FEATURE_TYPEVAL     ELF_PLATFORM
         |                                 ^~~~~~~~~~~~
   drivers/base/cpu.c:368:30: note: in expansion of macro 'CPU_FEATURE_TYPEVAL'
     368 |                              CPU_FEATURE_TYPEVAL);
         |                              ^~~~~~~~~~~~~~~~~~~
   ./include/linux/cpufeature.h:30:33: note: each undeclared identifier is reported only once for each function it appears in
      30 | #define CPU_FEATURE_TYPEVAL     ELF_PLATFORM
         |                                 ^~~~~~~~~~~~
   drivers/base/cpu.c:368:30: note: in expansion of macro 'CPU_FEATURE_TYPEVAL'
     368 |                              CPU_FEATURE_TYPEVAL);
         |                              ^~~~~~~~~~~~~~~~~~~


vim +30 ./include/linux/cpufeature.h

67bad2fdb754dbe Ard Biesheuvel 2014-02-08  28  
67bad2fdb754dbe Ard Biesheuvel 2014-02-08  29  #ifndef CPU_FEATURE_TYPEVAL
67bad2fdb754dbe Ard Biesheuvel 2014-02-08 @30  #define CPU_FEATURE_TYPEVAL	ELF_PLATFORM
67bad2fdb754dbe Ard Biesheuvel 2014-02-08  31  #endif
67bad2fdb754dbe Ard Biesheuvel 2014-02-08  32  

--
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:[~2026-08-15 12:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-15 12:55 ./include/linux/cpufeature.h:30:33: error: 'ELF_PLATFORM' undeclared; did you mean 'AT_PLATFORM'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.