[openeuler:OLK-6.6 2195/2195] arch/x86/events/zhaoxin/uncore.c:2761:6: warning: no previous prototype for 'kx5000_uncore_cpu_init'

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 97c2d1a4aa1430a6305c949fa1f72efe454c946d commit: dc5b97374ba722156acbdfc4e3adbc69e2dbe7f4 [2195/2195] perf/x86/zhaoxin/uncore: Add KX-7000 support config: x86_64-buildonly-randconfig-2002-20250502 (https://download.01.org/0day-ci/archive/20250603/202506031554.QV1bCcG7-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/20250603/202506031554.QV1bCcG7-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/202506031554.QV1bCcG7-lkp@intel.com/ All warnings (new ones prefixed by >>):
arch/x86/events/zhaoxin/uncore.c:2761:6: warning: no previous prototype for 'kx5000_uncore_cpu_init' [-Wmissing-prototypes] 2761 | void kx5000_uncore_cpu_init(void) | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2770:6: warning: no previous prototype for 'kh40000_uncore_cpu_init' [-Wmissing-prototypes] 2770 | void kh40000_uncore_cpu_init(void) | ^~~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2775:5: warning: no previous prototype for 'kh40000_uncore_pci_init' [-Wmissing-prototypes] 2775 | int kh40000_uncore_pci_init(void) | ^~~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2791:6: warning: no previous prototype for 'kx8000_uncore_cpu_init' [-Wmissing-prototypes] 2791 | void kx8000_uncore_cpu_init(void) | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2796:5: warning: no previous prototype for 'kx8000_uncore_pci_init' [-Wmissing-prototypes] 2796 | int kx8000_uncore_pci_init(void) | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2804:6: warning: no previous prototype for 'kx8000_uncore_mmio_init' [-Wmissing-prototypes] 2804 | void kx8000_uncore_mmio_init(void) | ^~~~~~~~~~~~~~~~~~~~~~~
vim +/kx5000_uncore_cpu_init +2761 arch/x86/events/zhaoxin/uncore.c 2760
2761 void kx5000_uncore_cpu_init(void) 2762 { 2763 uncore_msr_uncores = kx5000_msr_uncores; 2764 } 2765 2766 static const struct zhaoxin_uncore_init_fun kx5000_uncore_init __initconst = { 2767 .cpu_init = kx5000_uncore_cpu_init, 2768 }; 2769 2770 void kh40000_uncore_cpu_init(void) 2771 { 2772 uncore_msr_uncores = kh40000_msr_uncores; 2773 } 2774 2775 int kh40000_uncore_pci_init(void) 2776 { 2777 int ret = kh40000_pci2node_map_init();/*pci_bus to package mapping, do nothing*/ 2778 2779 if (ret) 2780 return ret; 2781 uncore_pci_uncores = kh40000_pci_uncores; 2782 uncore_pci_driver = &kh40000_uncore_pci_driver; 2783 return 0; 2784 } 2785
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot