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

tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 97c2d1a4aa1430a6305c949fa1f72efe454c946d commit: 25fd62f6e8c9636272009dfcbe04fb1a260cbf8d [2195/2195] perf/x86/zhaoxin/uncore: update KX-7000 support config: x86_64-buildonly-randconfig-2002-20250502 (https://download.01.org/0day-ci/archive/20250603/202506031655.e9KhPxkV-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/202506031655.e9KhPxkV-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/202506031655.e9KhPxkV-lkp@intel.com/ All warnings (new ones prefixed by >>): arch/x86/events/zhaoxin/uncore.c:2798:6: warning: no previous prototype for 'kx5000_uncore_cpu_init' [-Wmissing-prototypes] 2798 | void kx5000_uncore_cpu_init(void) | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2807:6: warning: no previous prototype for 'kh40000_uncore_cpu_init' [-Wmissing-prototypes] 2807 | void kh40000_uncore_cpu_init(void) | ^~~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2812:5: warning: no previous prototype for 'kh40000_uncore_pci_init' [-Wmissing-prototypes] 2812 | int kh40000_uncore_pci_init(void) | ^~~~~~~~~~~~~~~~~~~~~~~
arch/x86/events/zhaoxin/uncore.c:2828:6: warning: no previous prototype for 'kx7000_uncore_cpu_init' [-Wmissing-prototypes] 2828 | void kx7000_uncore_cpu_init(void) | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2843:5: warning: no previous prototype for 'kx7000_uncore_pci_init' [-Wmissing-prototypes] 2843 | int kx7000_uncore_pci_init(void) | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/events/zhaoxin/uncore.c:2851:6: warning: no previous prototype for 'kx7000_uncore_mmio_init' [-Wmissing-prototypes] 2851 | void kx7000_uncore_mmio_init(void) | ^~~~~~~~~~~~~~~~~~~~~~~
vim +/kx7000_uncore_cpu_init +2828 arch/x86/events/zhaoxin/uncore.c 2827
2828 void kx7000_uncore_cpu_init(void) 2829 { 2830 u64 val; 2831 int cpu; 2832 2833 uncore_msr_uncores = kx7000_msr_uncores; 2834 2835 /* clear bit 16 of MSR 0x1877 so that HIF can work normally */ 2836 for_each_present_cpu(cpu) { 2837 rdmsrl_on_cpu(cpu, 0x1877, &val); 2838 val = val & 0xfffffffffffeffffULL; 2839 wrmsrl_on_cpu(cpu, 0x1877, val); 2840 } 2841 } 2842 2843 int kx7000_uncore_pci_init(void) 2844 { 2845 uncore_pci_uncores = kx7000_pci_uncores; 2846 uncore_pci_driver = &kx7000_uncore_pci_driver; 2847 2848 return 0; 2849 } 2850 2851 void kx7000_uncore_mmio_init(void) 2852 { 2853 uncore_mmio_uncores = kx7000_mmio_uncores; 2854 } 2855
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot