All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: jasperwang@tencent.com, kaixuxia@tencent.com,
	frankjpliu@tencent.com, kasong@tencent.com,
	sagazchen@tencent.com, kernelxing@tencent.com,
	aurelianliu@tencent.com, jason.zeng@intel.com,
	wu.zheng@intel.com, yingbao.jia@intel.com, pei.p.jia@intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [opencloudos:next 4603/4615] arch/x86/events/zhaoxin/uncore.c:2762:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init'
Date: Sat, 23 Mar 2024 03:30:30 +0800	[thread overview]
Message-ID: <202403230331.vepgSQDo-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-03-22 19:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202403230331.vepgSQDo-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aurelianliu@tencent.com \
    --cc=frankjpliu@tencent.com \
    --cc=jason.zeng@intel.com \
    --cc=jasperwang@tencent.com \
    --cc=kaixuxia@tencent.com \
    --cc=kasong@tencent.com \
    --cc=kernelxing@tencent.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=pei.p.jia@intel.com \
    --cc=sagazchen@tencent.com \
    --cc=wu.zheng@intel.com \
    --cc=yingbao.jia@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.