All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vikram Singh <vikram.singh3@oss.qualcomm.com>
Cc: oe-kbuild-all@lists.linux.dev, Anup Patel <anup@brainfault.org>,
	Rajnesh Kanwal <rajnesh.kanwal49@gmail.com>
Subject: [avpatel:riscv_sbi_watchdog_v1 94/98] include/linux/perf/riscv_pmu.h:153:49: warning: 'struct cpu_hw_events' declared inside parameter list will not be visible outside of this definition or declaration
Date: Sun, 08 Nov 2026 18:48:49 +0100	[thread overview]
Message-ID: <202611081821.wrW1WvLU-lkp@intel.com> (raw)

tree:   https://github.com/avpatel/linux.git riscv_sbi_watchdog_v1
head:   929bf13433e242a3f255f463b2fb44633e102e0d
commit: b4cc5b9ca0cada8221e31b647640bbae515000a1 [94/98] riscv: pmu: Add driver for Control Transfer Records Ext
config: riscv-randconfig-2000-20261108 (https://download.01.org/0day-ci/archive/20261108/202611081821.wrW1WvLU-lkp@intel.com/config)
compiler: riscv32-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261108/202611081821.wrW1WvLU-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/202611081821.wrW1WvLU-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/riscv/include/asm/kvm_vcpu_pmu.h:12,
                    from arch/riscv/include/asm/kvm_host.h:27,
                    from arch/riscv/kernel/asm-offsets.c:13:
>> include/linux/perf/riscv_pmu.h:153:49: warning: 'struct cpu_hw_events' declared inside parameter list will not be visible outside of this definition or declaration
    static inline void riscv_pmu_ctr_consume(struct cpu_hw_events *cpuc,
                                                    ^~~~~~~~~~~~~
   include/linux/perf/riscv_pmu.h: In function 'riscv_pmu_ctr_sched_task':
   include/linux/perf/riscv_pmu.h:155:45: error: parameter name omitted
    static inline void riscv_pmu_ctr_sched_task(struct perf_event_pmu_context *,
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/perf/riscv_pmu.h: At top level:
>> include/linux/perf/riscv_pmu.h:163:45: warning: 'struct riscv_pmu' declared inside parameter list will not be visible outside of this definition or declaration
    static inline int riscv_pmu_ctr_init(struct riscv_pmu *riscv_pmu) { return 0; }
                                                ^~~~~~~~~
   include/linux/perf/riscv_pmu.h:164:48: warning: 'struct riscv_pmu' declared inside parameter list will not be visible outside of this definition or declaration
    static inline void riscv_pmu_ctr_finish(struct riscv_pmu *riscv_pmu) { }
                                                   ^~~~~~~~~
   include/linux/perf/riscv_pmu.h:158:13: warning: 'riscv_pmu_ctr_del' defined but not used [-Wunused-function]
    static void riscv_pmu_ctr_del(struct perf_event *event) { }
                ^~~~~~~~~~~~~~~~~
   include/linux/perf/riscv_pmu.h:157:13: warning: 'riscv_pmu_ctr_add' defined but not used [-Wunused-function]
    static void riscv_pmu_ctr_add(struct perf_event *event) { }
                ^~~~~~~~~~~~~~~~~
   make[3]: *** [scripts/Makefile.build:185: arch/riscv/kernel/asm-offsets.s] Error 1 shuffle=817640402
   make[3]: Target 'prepare' not remade because of errors.
   make[2]: *** [Makefile:1417: prepare0] Error 2 shuffle=817640402
   make[2]: Target 'prepare' not remade because of errors.
   make[1]: *** [Makefile:248: __sub-make] Error 2 shuffle=817640402
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:248: __sub-make] Error 2 shuffle=817640402
   make: Target 'prepare' not remade because of errors.


vim +153 include/linux/perf/riscv_pmu.h

   151	
   152	static inline bool riscv_pmu_ctr_valid(struct perf_event *event) { return false; }
 > 153	static inline void riscv_pmu_ctr_consume(struct cpu_hw_events *cpuc,
   154						 struct perf_event *event) { }
   155	static inline void riscv_pmu_ctr_sched_task(struct perf_event_pmu_context *,
   156						    struct task_struct *task, bool sched_in) { }
   157	static void riscv_pmu_ctr_add(struct perf_event *event) { }
   158	static void riscv_pmu_ctr_del(struct perf_event *event) { }
   159	static inline void riscv_pmu_ctr_enable(struct perf_event *event) { }
   160	static inline void riscv_pmu_ctr_disable(struct perf_event *event) { }
   161	static inline void riscv_pmu_ctr_dying_cpu(void) { }
   162	static inline void riscv_pmu_ctr_starting_cpu(void) { }
 > 163	static inline int riscv_pmu_ctr_init(struct riscv_pmu *riscv_pmu) { return 0; }
   164	static inline void riscv_pmu_ctr_finish(struct riscv_pmu *riscv_pmu) { }
   165	

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

             reply	other threads:[~2026-11-08 17:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-08 17:48 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2026-11-08 20:34 [avpatel:riscv_sbi_watchdog_v1 94/98] include/linux/perf/riscv_pmu.h:153:49: warning: 'struct cpu_hw_events' declared inside parameter list will not be visible outside of this definition or declaration kernel test robot

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=202611081821.wrW1WvLU-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anup@brainfault.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rajnesh.kanwal49@gmail.com \
    --cc=vikram.singh3@oss.qualcomm.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.