[reinette:resctrl/controls_rfc_v2 88/88] arch/x86/kernel/cpu/resctrl/core.c:560:13: warning: 'mba_wrmsr_intel' defined but not used
kernel test robot <[email protected]> Wed, 05 Aug 2026 00:50:05 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git resctrl/controls_rfc_v2 head: fbed64f80515241bc6da124585328fd5047a4a13 commit: fbed64f80515241bc6da124585328fd5047a4a13 [88/88] x86/resctrl: SAMPLE: Emulated controls config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260805/[email protected]/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> arch/x86/kernel/cpu/resctrl/core.c:560:13: warning: 'mba_wrmsr_intel' defined but not used [-Wunused-function] 560 | static void mba_wrmsr_intel(struct msr_param *m) | ^~~~~~~~~~~~~~~ vim +/mba_wrmsr_intel +560 arch/x86/kernel/cpu/resctrl/core.c fbed64f8051524 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-08-03 559 bd4955d4bc2182 arch/x86/kernel/cpu/resctrl/core.c Tony Luck 2024-03-08 @560 static void mba_wrmsr_intel(struct msr_param *m) 05b93417ce5b92 arch/x86/kernel/cpu/intel_rdt.c Vikas Shivappa 2017-04-07 561 { cae2bcb6a2c691 arch/x86/kernel/cpu/resctrl/core.c Tony Luck 2024-06-28 562 struct rdt_hw_ctrl_domain *hw_dom = resctrl_to_arch_ctrl_dom(m->dom); 13548d0c5c4b65 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-05-28 563 struct resctrl_hw_ctrl *hw_ctrl = resctrl_to_arch_ctrl(m->ctrl); 05b93417ce5b92 arch/x86/kernel/cpu/intel_rdt.c Vikas Shivappa 2017-04-07 564 unsigned int i; 05b93417ce5b92 arch/x86/kernel/cpu/intel_rdt.c Vikas Shivappa 2017-04-07 565 d4846284209b96 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-07-21 566 if (!test_bit(RESCTRL_SCALAR_FLAG_LINEAR, m->ctrl->scalar.flags)) { a1bcfaf0334053 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-04-07 567 pr_warn_once("Non-linear bandwidth delay not supported\n"); a1bcfaf0334053 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-04-07 568 return; a1bcfaf0334053 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-04-07 569 } a1bcfaf0334053 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-04-07 570 a1bcfaf0334053 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-04-07 571 /* Program bandwidth percentage mapped to linear delay value. */ 05b93417ce5b92 arch/x86/kernel/cpu/intel_rdt.c Vikas Shivappa 2017-04-07 572 for (i = m->low; i < m->high; i++) 13548d0c5c4b65 arch/x86/kernel/cpu/resctrl/core.c Reinette Chatre 2026-05-28 573 wrmsrq(hw_ctrl->msr_base + i, MAX_MBA_BW - hw_dom->ctrl_val[i]); 05b93417ce5b92 arch/x86/kernel/cpu/intel_rdt.c Vikas Shivappa 2017-04-07 574 } 05b93417ce5b92 arch/x86/kernel/cpu/intel_rdt.c Vikas Shivappa 2017-04-07 575 :::::: The code at line 560 was first introduced by commit :::::: bd4955d4bc2182ccb660c9c30a4dd7f36feaf943 x86/resctrl: Simplify call convention for MSR update functions :::::: TO: Tony Luck <[email protected]> :::::: CC: Borislav Petkov (AMD) <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki