All of lore.kernel.org
 help / color / mirror / Atom feed
* [opencloudos:next 4603/4615] arch/x86/events/zhaoxin/uncore.c:2762:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init'
@ 2024-03-22 19:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-03-22 19:30 UTC (permalink / raw)
  To: jasperwang, kaixuxia, frankjpliu, kasong, sagazchen, kernelxing,
	aurelianliu, jason.zeng, wu.zheng, yingbao.jia, pei.p.jia
  Cc: oe-kbuild-all

tree:   https://gitee.com/OpenCloudOS/OpenCloudOS-Kernel.git next
head:   e0ee18f8b8228a1b9598534057943383c2ed23a5
commit: 706da336689b0e28091e742d5dbc3640f33d51c4 [4603/4615] x86/perf: Add PMU uncore support for Zhaoxin CPU
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240323/202403230331.vepgSQDo-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240323/202403230331.vepgSQDo-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/202403230331.vepgSQDo-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/x86/events/zhaoxin/uncore.c:2762:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init' [-Wmissing-prototypes]
    2762 | void kx5000_uncore_cpu_init(void)
         |      ^
   arch/x86/events/zhaoxin/uncore.c:2762:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2762 | void kx5000_uncore_cpu_init(void)
         | ^
         | static 
>> arch/x86/events/zhaoxin/uncore.c:2771:6: warning: no previous prototype for function 'kh40000_uncore_cpu_init' [-Wmissing-prototypes]
    2771 | void kh40000_uncore_cpu_init(void)
         |      ^
   arch/x86/events/zhaoxin/uncore.c:2771:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2771 | void kh40000_uncore_cpu_init(void)
         | ^
         | static 
>> arch/x86/events/zhaoxin/uncore.c:2776:5: warning: no previous prototype for function 'kh40000_uncore_pci_init' [-Wmissing-prototypes]
    2776 | int kh40000_uncore_pci_init(void)
         |     ^
   arch/x86/events/zhaoxin/uncore.c:2776:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2776 | int kh40000_uncore_pci_init(void)
         | ^
         | static 
>> arch/x86/events/zhaoxin/uncore.c:2792:6: warning: no previous prototype for function 'kx8000_uncore_cpu_init' [-Wmissing-prototypes]
    2792 | void kx8000_uncore_cpu_init(void)
         |      ^
   arch/x86/events/zhaoxin/uncore.c:2792:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2792 | void kx8000_uncore_cpu_init(void)
         | ^
         | static 
>> arch/x86/events/zhaoxin/uncore.c:2797:5: warning: no previous prototype for function 'kx8000_uncore_pci_init' [-Wmissing-prototypes]
    2797 | int kx8000_uncore_pci_init(void)
         |     ^
   arch/x86/events/zhaoxin/uncore.c:2797:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2797 | int kx8000_uncore_pci_init(void)
         | ^
         | static 
>> arch/x86/events/zhaoxin/uncore.c:2805:6: warning: no previous prototype for function 'kx8000_uncore_mmio_init' [-Wmissing-prototypes]
    2805 | void kx8000_uncore_mmio_init(void)
         |      ^
   arch/x86/events/zhaoxin/uncore.c:2805:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
    2805 | void kx8000_uncore_mmio_init(void)
         | ^
         | static 
   6 warnings generated.


vim +/kx5000_uncore_cpu_init +2762 arch/x86/events/zhaoxin/uncore.c

  2761	
> 2762	void kx5000_uncore_cpu_init(void)
  2763	{
  2764		uncore_msr_uncores = kx5000_msr_uncores;
  2765	}
  2766	
  2767	static const struct zhaoxin_uncore_init_fun kx5000_uncore_init __initconst = {
  2768		.cpu_init = kx5000_uncore_cpu_init,
  2769	};
  2770	
> 2771	void kh40000_uncore_cpu_init(void)
  2772	{
  2773		uncore_msr_uncores = kh40000_msr_uncores;
  2774	}
  2775	
> 2776	int kh40000_uncore_pci_init(void)
  2777	{
  2778		int ret = kh40000_pci2node_map_init();/*pci_bus to package mapping, do nothing*/
  2779	
  2780		if (ret)
  2781			return ret;
  2782		uncore_pci_uncores = kh40000_pci_uncores;
  2783		uncore_pci_driver = &kh40000_uncore_pci_driver;
  2784		return 0;
  2785	}
  2786	
  2787	static const struct zhaoxin_uncore_init_fun kh40000_uncore_init __initconst = {
  2788		.cpu_init = kh40000_uncore_cpu_init,
  2789		.pci_init = kh40000_uncore_pci_init,
  2790	};
  2791	
> 2792	void kx8000_uncore_cpu_init(void)
  2793	{
  2794		uncore_msr_uncores = kx8000_msr_uncores;
  2795	}
  2796	
> 2797	int kx8000_uncore_pci_init(void)
  2798	{
  2799		uncore_pci_uncores = kx8000_pci_uncores;
  2800		uncore_pci_driver = &kx8000_uncore_pci_driver;
  2801	
  2802		return 0;
  2803	}
  2804	
> 2805	void kx8000_uncore_mmio_init(void)
  2806	{
  2807		uncore_mmio_uncores = kx8000_mmio_uncores;
  2808	}
  2809	

-- 
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:[~2024-03-22 19:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-22 19:30 [opencloudos:next 4603/4615] arch/x86/events/zhaoxin/uncore.c:2762: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.