tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: ab4fcabb7d813ddd7a455c85557f8d0891df4c41 commit: 8eaba08b2d72718a40cafe3402ab4f26b0dc62eb [9863/16090] x86/cpu/zhaoxin: Encapsulate access to global variables within functions config: x86_64-buildonly-randconfig-003-20241104 (https://download.01.org/0day-ci/archive/20241105/202411050256.qgVICxTA-lkp@i...) compiler: gcc-11 (Debian 11.3.0-12) 11.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241105/202411050256.qgVICxTA-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/202411050256.qgVICxTA-lkp@intel.com/
All warnings (new ones prefixed by >>):
arch/x86/kernel/early-quirks.c:722:6: warning: no previous prototype for 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
722 | bool is_zhaoxin_kh40000(void) | ^~~~~~~~~~~~~~~~~~ arch/x86/kernel/early-quirks.c: In function 'quirk_zhaoxin_dma_patch': arch/x86/kernel/early-quirks.c:737:28: error: 'kh40000_dma_direct_ops' undeclared (first use in this function) 737 | dma_ops = &kh40000_dma_direct_ops; | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/kernel/early-quirks.c:737:28: note: each undeclared identifier is reported only once for each function it appears in --
kernel/dma/contiguous.c:209:13: warning: no previous prototype for 'is_zhaoxin_kh40000' [-Wmissing-prototypes]
209 | bool __weak is_zhaoxin_kh40000(void) | ^~~~~~~~~~~~~~~~~~
vim +/is_zhaoxin_kh40000 +722 arch/x86/kernel/early-quirks.c
721
722 bool is_zhaoxin_kh40000(void)
723 { 724 return zhaoxin_kh40000; 725 } 726