[openeuler:OLK-6.6 1474/1474] arch/x86/kernel/early-quirks.c:720:22: sparse: sparse: symbol 'zhaoxin_kh40000' was not declared. Should it be static?

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: cce003012298a00277187319a2527882a18278c1 commit: 11557c1ae4529f133483879b7ee00b7d8c653be7 [1474/1474] x86/cpu/zhaoxin: Encapsulate access to kh40000_dma_direct_ops within function config: x86_64-randconfig-121-20241118 (https://download.01.org/0day-ci/archive/20241120/202411201915.hYUwc9VU-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241120/202411201915.hYUwc9VU-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/202411201915.hYUwc9VU-lkp@intel.com/ sparse warnings: (new ones prefixed by >>) arch/x86/kernel/early-quirks.c:680:49: sparse: sparse: restricted pci_power_t degrades to integer arch/x86/kernel/early-quirks.c:686:57: sparse: sparse: restricted pci_power_t degrades to integer vim +/zhaoxin_kh40000 +720 arch/x86/kernel/early-quirks.c 62187910b0fc7a Feng Tang 2014-04-24 719 8eaba08b2d7271 leoliu-oc 2024-06-03 @720 bool __ro_after_init zhaoxin_kh40000; 8eaba08b2d7271 leoliu-oc 2024-06-03 721 :::::: The code at line 720 was first introduced by commit :::::: 8eaba08b2d72718a40cafe3402ab4f26b0dc62eb x86/cpu/zhaoxin: Encapsulate access to global variables within functions :::::: TO: leoliu-oc <leoliu-oc@zhaoxin.com> :::::: CC: leoliu-oc <leoliu-oc@zhaoxin.com> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot