[openeuler:OLK-6.6 3214/3214] drivers/base/arch_numa.c:194:12: sparse: sparse: symbol 'node_reclaim_distance_setup' was not declared. Should it be static?
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 4bd802eb810aced0425a9fbdedbf306c0c1e0fda commit: 5e5d40e65cb55e4699c9879674a004f246606a8d [3214/3214] arch_numa: Make node reclaim distance adjustment always available config: arm64-randconfig-r121-20251118 (https://download.01.org/0day-ci/archive/20251118/202511181224.q1NCFdeb-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251118/202511181224.q1NCFdeb-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/202511181224.q1NCFdeb-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
drivers/base/arch_numa.c:194:12: sparse: sparse: symbol 'node_reclaim_distance_setup' was not declared. Should it be static?
vim +/node_reclaim_distance_setup +194 drivers/base/arch_numa.c 192 193 #define DISTANCE_MAX (1 << DISTANCE_BITS)
194 int __init node_reclaim_distance_setup(char *str) 195 { 196 int val; 197 198 if (kstrtoint(str, 0, &val)) 199 return -EINVAL; 200 201 if (val < LOCAL_DISTANCE || val >= DISTANCE_MAX) 202 return -EINVAL; 203 204 if (val != RECLAIM_DISTANCE) { 205 node_reclaim_distance = val; 206 pr_info("Force set node_reclaim_distance to %d\n", val); 207 } 208 209 return 0; 210 } 211 early_param("node_reclaim_distance", node_reclaim_distance_setup); 212
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot