tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 9f126942e6d283d9a0ca99f3e46dbebe8aec3afd commit: 069486b6d96472a22fc9fdb779ae3676710eea5a [26370/30000] cpuinspect: add CPU-inspect infrastructure config: x86_64-randconfig-r132-20240409 (https://download.01.org/0day-ci/archive/20240410/202404100142.WYaJGYT1-lkp@i...) 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/20240410/202404100142.WYaJGYT1-lkp@i...)
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/202404100142.WYaJGYT1-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/cpuinspect/inspector.c:34:22: sparse: sparse: symbol 'prev_cpu_inspector' was not declared. Should it be static?
--
drivers/cpuinspect/sysfs.c:92:9: sparse: sparse: symbol 'patrol_complete_show' was not declared. Should it be static? drivers/cpuinspect/sysfs.c:98:9: sparse: sparse: symbol 'cpu_utility_show' was not declared. Should it be static? drivers/cpuinspect/sysfs.c:104:9: sparse: sparse: symbol 'cpu_utility_store' was not declared. Should it be static? drivers/cpuinspect/sysfs.c:117:9: sparse: sparse: symbol 'patrol_times_show' was not declared. Should it be static? drivers/cpuinspect/sysfs.c:123:9: sparse: sparse: symbol 'patrol_times_store' was not declared. Should it be static? drivers/cpuinspect/sysfs.c:139:9: sparse: sparse: symbol 'start_patrol_store' was not declared. Should it be static?
vim +/prev_cpu_inspector +34 drivers/cpuinspect/inspector.c
31 32 LIST_HEAD(cpu_inspectors); 33 struct cpu_inspector *curr_cpu_inspector;
34 struct cpu_inspector *prev_cpu_inspector;
35