[openeuler:OLK-5.10 2954/2954] arch/arm64/mm/pmem_reserve.c:11:17: sparse: sparse: symbol 'pmem_res' was not declared. Should it be static?

tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: 90ff3e07cc268a8e40bd578dcc4907a3db419c52 commit: db4cd75bc674e6f473c0a7303b1744155352882c [2954/2954] arm64: register persistent memory via protected memory config: arm64-randconfig-r133-20250610 (https://download.01.org/0day-ci/archive/20250610/202506101929.qhZqxH6c-lkp@i...) compiler: aarch64-linux-gcc (GCC) 14.3.0 reproduce: (https://download.01.org/0day-ci/archive/20250610/202506101929.qhZqxH6c-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/202506101929.qhZqxH6c-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) vim +/pmem_res +11 arch/arm64/mm/pmem_reserve.c 8 9 #define MAX_REGIONS 8 10 static int pmem_res_cnt;
11 struct resource pmem_res[MAX_REGIONS]; 12
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot