All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kan Liang <kan.liang@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev, Chao Qin <chao.qin@intel.com>,
	Andi Kleen <ak@linux.intel.com>
Subject: [intel-lts:5.10/yocto 23923/30000] arch/x86/events/intel/uncore_snbep.c:5453:33: warning: 'spr_uncore_pcu' defined but not used
Date: Wed, 22 Feb 2023 01:31:27 +0800	[thread overview]
Message-ID: <202302220152.erdDtpAQ-lkp@intel.com> (raw)

Hi Kan,

FYI, the error/warning still remains.

tree:   https://github.com/intel/linux-intel-lts.git 5.10/yocto
head:   e8844106f6fc41e1c8d5dbadbd62ac3e54030903
commit: 3f62f906a5319a0bdc901f887d0d37ef43754676 [23923/30000] perf/x86/intel/uncore: Add Sapphire Rapids server IMC support
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20230222/202302220152.erdDtpAQ-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/linux-intel-lts/commit/3f62f906a5319a0bdc901f887d0d37ef43754676
        git remote add intel-lts https://github.com/intel/linux-intel-lts.git
        git fetch --no-tags intel-lts 5.10/yocto
        git checkout 3f62f906a5319a0bdc901f887d0d37ef43754676
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/events/intel/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302220152.erdDtpAQ-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/x86/events/intel/uncore_snbep.c:5381:35: error: 'intel_generic_uncore_msr_init_box' undeclared here (not in a function); did you mean 'ivbep_uncore_msr_init_box'?
    5381 |         .init_box               = intel_generic_uncore_msr_init_box,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   ivbep_uncore_msr_init_box
   arch/x86/events/intel/uncore_snbep.c:5382:35: error: 'intel_generic_uncore_msr_disable_box' undeclared here (not in a function); did you mean 'snbep_uncore_msr_disable_box'?
    5382 |         .disable_box            = intel_generic_uncore_msr_disable_box,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snbep_uncore_msr_disable_box
   arch/x86/events/intel/uncore_snbep.c:5383:35: error: 'intel_generic_uncore_msr_enable_box' undeclared here (not in a function); did you mean 'snbep_uncore_msr_enable_box'?
    5383 |         .enable_box             = intel_generic_uncore_msr_enable_box,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snbep_uncore_msr_enable_box
   arch/x86/events/intel/uncore_snbep.c:5472:35: error: 'intel_generic_uncore_mmio_init_box' undeclared here (not in a function); did you mean 'snr_uncore_mmio_init_box'?
    5472 |         .init_box               = intel_generic_uncore_mmio_init_box,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snr_uncore_mmio_init_box
   arch/x86/events/intel/uncore_snbep.c:5474:35: error: 'intel_generic_uncore_mmio_disable_box' undeclared here (not in a function); did you mean 'snr_uncore_mmio_disable_box'?
    5474 |         .disable_box            = intel_generic_uncore_mmio_disable_box,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snr_uncore_mmio_disable_box
   arch/x86/events/intel/uncore_snbep.c:5475:35: error: 'intel_generic_uncore_mmio_enable_box' undeclared here (not in a function); did you mean 'snr_uncore_mmio_enable_box'?
    5475 |         .enable_box             = intel_generic_uncore_mmio_enable_box,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snr_uncore_mmio_enable_box
   arch/x86/events/intel/uncore_snbep.c:5476:35: error: 'intel_generic_uncore_mmio_disable_event' undeclared here (not in a function); did you mean 'snr_uncore_mmio_disable_event'?
    5476 |         .disable_event          = intel_generic_uncore_mmio_disable_event,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                   snr_uncore_mmio_disable_event
   arch/x86/events/intel/uncore_snbep.c: In function 'uncore_get_uncores':
   arch/x86/events/intel/uncore_snbep.c:5544:31: error: implicit declaration of function 'intel_uncore_generic_init_uncores'; did you mean 'intel_uncore_generic_uncore_mmio_init'? [-Werror=implicit-function-declaration]
    5544 |         start_types = types = intel_uncore_generic_init_uncores(type_id);
         |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                               intel_uncore_generic_uncore_mmio_init
   arch/x86/events/intel/uncore_snbep.c:5544:29: warning: assignment to 'struct intel_uncore_type **' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    5544 |         start_types = types = intel_uncore_generic_init_uncores(type_id);
         |                             ^
   At top level:
>> arch/x86/events/intel/uncore_snbep.c:5453:33: warning: 'spr_uncore_pcu' defined but not used [-Wunused-variable]
    5453 | static struct intel_uncore_type spr_uncore_pcu = {
         |                                 ^~~~~~~~~~~~~~
>> arch/x86/events/intel/uncore_snbep.c:5448:33: warning: 'spr_uncore_m2pcie' defined but not used [-Wunused-variable]
    5448 | static struct intel_uncore_type spr_uncore_m2pcie = {
         |                                 ^~~~~~~~~~~~~~~~~
>> arch/x86/events/intel/uncore_snbep.c:5442:33: warning: 'spr_uncore_irp' defined but not used [-Wunused-variable]
    5442 | static struct intel_uncore_type spr_uncore_irp = {
         |                                 ^~~~~~~~~~~~~~
>> arch/x86/events/intel/uncore_snbep.c:5416:33: warning: 'spr_uncore_iio' defined but not used [-Wunused-variable]
    5416 | static struct intel_uncore_type spr_uncore_iio = {
         |                                 ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/spr_uncore_pcu +5453 arch/x86/events/intel/uncore_snbep.c

  5415	
> 5416	static struct intel_uncore_type spr_uncore_iio = {
  5417		.name			= "iio",
  5418		.event_mask		= SNBEP_PMON_RAW_EVENT_MASK,
  5419		.event_mask_ext		= SNR_IIO_PMON_RAW_EVENT_MASK_EXT,
  5420		.format_group		= &snr_uncore_iio_format_group,
  5421	};
  5422	
  5423	static struct attribute *spr_uncore_raw_formats_attr[] = {
  5424		&format_attr_event.attr,
  5425		&format_attr_umask_ext4.attr,
  5426		&format_attr_edge.attr,
  5427		&format_attr_inv.attr,
  5428		&format_attr_thresh8.attr,
  5429		NULL,
  5430	};
  5431	
  5432	static const struct attribute_group spr_uncore_raw_format_group = {
  5433		.name			= "format",
  5434		.attrs			= spr_uncore_raw_formats_attr,
  5435	};
  5436	
  5437	#define SPR_UNCORE_COMMON_FORMAT()				\
  5438		.event_mask		= SNBEP_PMON_RAW_EVENT_MASK,	\
  5439		.event_mask_ext		= SPR_RAW_EVENT_MASK_EXT,	\
  5440		.format_group		= &spr_uncore_raw_format_group
  5441	
> 5442	static struct intel_uncore_type spr_uncore_irp = {
  5443		SPR_UNCORE_COMMON_FORMAT(),
  5444		.name			= "irp",
  5445	
  5446	};
  5447	
> 5448	static struct intel_uncore_type spr_uncore_m2pcie = {
  5449		SPR_UNCORE_COMMON_FORMAT(),
  5450		.name			= "m2pcie",
  5451	};
  5452	
> 5453	static struct intel_uncore_type spr_uncore_pcu = {
  5454		.name			= "pcu",
  5455	};
  5456	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-02-21 17:31 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=202302220152.erdDtpAQ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ak@linux.intel.com \
    --cc=chao.qin@intel.com \
    --cc=kan.liang@linux.intel.com \
    --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.