* [morse:mpam/snapshot/v6.15-rc3 92/110] drivers/platform/arm64/mpam/mpam_resctrl.c:326:10: warning: enumeration value 'QOS_NUM_EVENTS' not handled in switch
@ 2025-05-02 0:12 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-02 0:12 UTC (permalink / raw)
To: James Morse; +Cc: llvm, oe-kbuild-all
Hi James,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v6.15-rc3
head: 2cc3eff27207d40f181a59f04660a1e8e9746ff8
commit: a72f3a3a6232e93a4ff7ac9036df24fc15157fee [92/110] arm64: mpam: Select ARCH_HAS_CPU_RESCTRL
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20250502/202505020820.skhaveyd-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250502/202505020820.skhaveyd-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/202505020820.skhaveyd-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/platform/arm64/mpam/mpam_resctrl.c:326:10: warning: enumeration value 'QOS_NUM_EVENTS' not handled in switch [-Wswitch]
326 | switch (evtid) {
| ^~~~~
1 warning generated.
vim +/QOS_NUM_EVENTS +326 drivers/platform/arm64/mpam/mpam_resctrl.c
ab494c1ab56754 James Morse 2021-06-25 312
ab494c1ab56754 James Morse 2021-06-25 313 void resctrl_arch_mon_ctx_free(struct rdt_resource *r,
ab494c1ab56754 James Morse 2021-06-25 314 enum resctrl_event_id evtid, void *arch_mon_ctx)
ab494c1ab56754 James Morse 2021-06-25 315 {
ab494c1ab56754 James Morse 2021-06-25 316 struct mpam_resctrl_res *res;
ab494c1ab56754 James Morse 2021-06-25 317 u32 mon = *(u32 *)arch_mon_ctx;
ab494c1ab56754 James Morse 2021-06-25 318
ab494c1ab56754 James Morse 2021-06-25 319 if (mon == USE_RMID_IDX)
ab494c1ab56754 James Morse 2021-06-25 320 return;
ab494c1ab56754 James Morse 2021-06-25 321 kfree(arch_mon_ctx);
ab494c1ab56754 James Morse 2021-06-25 322 arch_mon_ctx = NULL;
ab494c1ab56754 James Morse 2021-06-25 323
ab494c1ab56754 James Morse 2021-06-25 324 res = container_of(r, struct mpam_resctrl_res, resctrl_res);
ab494c1ab56754 James Morse 2021-06-25 325
ab494c1ab56754 James Morse 2021-06-25 @326 switch (evtid) {
ab494c1ab56754 James Morse 2021-06-25 327 case QOS_L3_OCCUP_EVENT_ID:
ab494c1ab56754 James Morse 2021-06-25 328 mpam_free_csu_mon(res->class, mon);
ab494c1ab56754 James Morse 2021-06-25 329 wake_up(&resctrl_mon_ctx_waiters);
ab494c1ab56754 James Morse 2021-06-25 330 return;
ab494c1ab56754 James Morse 2021-06-25 331 case QOS_L3_MBM_TOTAL_EVENT_ID:
ab494c1ab56754 James Morse 2021-06-25 332 case QOS_L3_MBM_LOCAL_EVENT_ID:
ab494c1ab56754 James Morse 2021-06-25 333 return;
ab494c1ab56754 James Morse 2021-06-25 334 }
ab494c1ab56754 James Morse 2021-06-25 335 }
ab494c1ab56754 James Morse 2021-06-25 336
:::::: The code at line 326 was first introduced by commit
:::::: ab494c1ab56754729b57617a5f5f40c64c954521 arm_mpam: resctrl: Allow resctrl to allocate monitors
:::::: TO: James Morse <james.morse@arm.com>
:::::: CC: James Morse <james.morse@arm.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-05-02 0:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-02 0:12 [morse:mpam/snapshot/v6.15-rc3 92/110] drivers/platform/arm64/mpam/mpam_resctrl.c:326:10: warning: enumeration value 'QOS_NUM_EVENTS' not handled in switch kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).