include/linux/cpuhplock.h:39:58: error: 'EPERM' undeclared
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git get_cpu_cacheinfo_level head: 1c9e9c336edc795736b7f42999bfed1cfa94724e commit: 476529e56cba3ab0efd64bca5e40d7e4b8b2085c [2/3] cacheinfo: Add function to get cacheinfo for a given (cpu, cachelevel) config: x86_64-randconfig-102-20240608 (https://download.01.org/0day-ci/archive/20240608/[email protected]/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240608/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
In file included from include/linux/cacheinfo.h:6,
from arch/x86/kernel/cpu/resctrl/rdtgroup.c:15:
include/linux/cpuhplock.h: In function 'remove_cpu':
>> include/linux/cpuhplock.h:39:58: error: 'EPERM' undeclared (first use in this function)
39 | static inline int remove_cpu(unsigned int cpu) { return -EPERM; }
| ^~~~~ include/linux/cpuhplock.h:39:58: note: each undeclared identifier is reported only once for each function it appears in
vim +/EPERM +39 include/linux/cpuhplock.h
c0bea3bea7eb17 Tony Luck 2024-06-07 30
c0bea3bea7eb17 Tony Luck 2024-06-07 31 static inline void cpus_write_lock(void) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 32 static inline void cpus_write_unlock(void) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 33 static inline void cpus_read_lock(void) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 34 static inline void cpus_read_unlock(void) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 35 static inline int cpus_read_trylock(void) { return true; }
c0bea3bea7eb17 Tony Luck 2024-06-07 36 static inline void lockdep_assert_cpus_held(void) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 37 static inline void cpu_hotplug_disable(void) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 38 static inline void cpu_hotplug_enable(void) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 @39 static inline int remove_cpu(unsigned int cpu) { return -EPERM; }
c0bea3bea7eb17 Tony Luck 2024-06-07 40 static inline void smp_shutdown_nonboot_cpus(unsigned int primary_cpu) { }
c0bea3bea7eb17 Tony Luck 2024-06-07 41 #endif /* !CONFIG_HOTPLUG_CPU */c0bea3bea7eb17 Tony Luck 2024-06-07 42
:::::: The code at line 39 was first introduced by commit
:::::: c0bea3bea7eb1701c38f23c8ae2d0a49fd35cbbd cpu: Move CPU hotplug function declarations into their own header
:::::: TO: Tony Luck <[email protected]>
:::::: CC: Tony Luck <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki