[PATCH v3 5/7] riscv: pmu: Add driver for Control Transfer Records Ext.

kernel test robot lkp at intel.com
Fri May 23 10:48:04 PDT 2025


Hi Rajnesh,

kernel test robot noticed the following build warnings:

[auto build test WARNING on e0200e37637e573cd68f522ecd550be87e304c6c]

url:    https://github.com/intel-lab-lkp/linux/commits/Rajnesh-Kanwal/perf-Increase-the-maximum-number-of-branches-remove_loops-can-process/20250523-073341
base:   e0200e37637e573cd68f522ecd550be87e304c6c
patch link:    https://lore.kernel.org/r/20250523-b4-ctr_upstream_v3-v3-5-ad355304ba1c%40rivosinc.com
patch subject: [PATCH v3 5/7] riscv: pmu: Add driver for Control Transfer Records Ext.
config: riscv-randconfig-002-20250523 (https://download.01.org/0day-ci/archive/20250524/202505240131.OJkUGGvA-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/20250524/202505240131.OJkUGGvA-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505240131.OJkUGGvA-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/riscv/kernel/asm-offsets.c:12:
   In file included from arch/riscv/include/asm/kvm_host.h:23:
   In file included from arch/riscv/include/asm/kvm_vcpu_pmu.h:12:
>> include/linux/perf/riscv_pmu.h:156:76: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
     156 | static inline void riscv_pmu_ctr_sched_task(struct perf_event_pmu_context *,
         |                                                                            ^
   include/linux/perf/riscv_pmu.h:158:13: warning: unused function 'riscv_pmu_ctr_add' [-Wunused-function]
     158 | static void riscv_pmu_ctr_add(struct perf_event *event) { }
         |             ^~~~~~~~~~~~~~~~~
   include/linux/perf/riscv_pmu.h:159:13: warning: unused function 'riscv_pmu_ctr_del' [-Wunused-function]
     159 | static void riscv_pmu_ctr_del(struct perf_event *event) { }
         |             ^~~~~~~~~~~~~~~~~
   3 warnings generated.
--
   In file included from arch/riscv/kernel/asm-offsets.c:12:
   In file included from arch/riscv/include/asm/kvm_host.h:23:
   In file included from arch/riscv/include/asm/kvm_vcpu_pmu.h:12:
>> include/linux/perf/riscv_pmu.h:156:76: warning: omitting the parameter name in a function definition is a C2x extension [-Wc2x-extensions]
     156 | static inline void riscv_pmu_ctr_sched_task(struct perf_event_pmu_context *,
         |                                                                            ^
   include/linux/perf/riscv_pmu.h:158:13: warning: unused function 'riscv_pmu_ctr_add' [-Wunused-function]
     158 | static void riscv_pmu_ctr_add(struct perf_event *event) { }
         |             ^~~~~~~~~~~~~~~~~
   include/linux/perf/riscv_pmu.h:159:13: warning: unused function 'riscv_pmu_ctr_del' [-Wunused-function]
     159 | static void riscv_pmu_ctr_del(struct perf_event *event) { }
         |             ^~~~~~~~~~~~~~~~~
   3 warnings generated.


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

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

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



More information about the linux-arm-kernel mailing list