All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 2687/2687] arch/x86/events/zhaoxin/uncore.c:2761:6: warning: no previous prototype for function 'kx5000_uncore_cpu_init'
Date: Mon, 18 Aug 2025 09:43:51 +0200	[thread overview]
Message-ID: <202508180932.bKWZIbb7-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-18  7:44 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=202508180932.bKWZIbb7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kernel@openeuler.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.