* [openeuler:OLK-6.6 2687/2687] arch/x86/events/zhaoxin/uncore.c:2761:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init'
@ 2025-08-18 7:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-18 7:43 UTC (permalink / raw)
To: kernel; +Cc: oe-kbuild-all
Hi leoliu-oc,
FYI, the error/warning still remains.
tree: https://gitee.com/openeuler/kernel.git OLK-6.6
head: 08d6c0b8f95e9c676bd9bc28b12d198df722218e
commit: dc5b97374ba722156acbdfc4e3adbc69e2dbe7f4 [2687/2687] perf/x86/zhaoxin/uncore: Add KX-7000 support
config: x86_64-buildonly-randconfig-2003-20250818 (https://download.01.org/0day-ci/archive/20250818/202508180932.bKWZIbb7-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250818/202508180932.bKWZIbb7-lkp@intel.com/reproduce)
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/202508180932.bKWZIbb7-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from arch/x86/events/zhaoxin/uncore.c:3:
In file included from arch/x86/events/zhaoxin/uncore.h:3:
In file included from include/linux/pci.h:1663:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:2193:
include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
>> arch/x86/events/zhaoxin/uncore.c:2761:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init' [-Wmissing-prototypes]
2761 | void kx5000_uncore_cpu_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2761:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2761 | void kx5000_uncore_cpu_init(void)
| ^
| static
>> arch/x86/events/zhaoxin/uncore.c:2770:6: warning: no previous prototype for function 'kh40000_uncore_cpu_init' [-Wmissing-prototypes]
2770 | void kh40000_uncore_cpu_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2770:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2770 | void kh40000_uncore_cpu_init(void)
| ^
| static
>> arch/x86/events/zhaoxin/uncore.c:2775:5: warning: no previous prototype for function 'kh40000_uncore_pci_init' [-Wmissing-prototypes]
2775 | int kh40000_uncore_pci_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2775:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2775 | int kh40000_uncore_pci_init(void)
| ^
| static
arch/x86/events/zhaoxin/uncore.c:2791:6: warning: no previous prototype for function 'kx8000_uncore_cpu_init' [-Wmissing-prototypes]
2791 | void kx8000_uncore_cpu_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2791:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2791 | void kx8000_uncore_cpu_init(void)
| ^
| static
arch/x86/events/zhaoxin/uncore.c:2796:5: warning: no previous prototype for function 'kx8000_uncore_pci_init' [-Wmissing-prototypes]
2796 | int kx8000_uncore_pci_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2796:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2796 | int kx8000_uncore_pci_init(void)
| ^
| static
arch/x86/events/zhaoxin/uncore.c:2804:6: warning: no previous prototype for function 'kx8000_uncore_mmio_init' [-Wmissing-prototypes]
2804 | void kx8000_uncore_mmio_init(void)
| ^
arch/x86/events/zhaoxin/uncore.c:2804:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
2804 | void kx8000_uncore_mmio_init(void)
| ^
| static
7 warnings generated.
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-18 7:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 7:43 [openeuler:OLK-6.6 2687/2687] arch/x86/events/zhaoxin/uncore.c:2761:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.