Skip to contentSkip to conversation

fs/resctrl2/arch/x86/amd_mbec.c:189:32: warning: 'bmec_feature' defined but not used

PATCH kernel test robot 1 participant 1 message Sep 8, 2023

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git resctrl2_v65
head:   13c888afbee9f7da0a4a969617dea9889da9d711
commit: 13c888afbee9f7da0a4a969617dea9889da9d711 [4/4] resctrl2: AMD Bandwidth Monitoring Event Configuration
config: i386-randconfig-051-20230909 (https://download.01.org/0day-ci/archive/20230909/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230909/[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 >>):

>> fs/resctrl2/arch/x86/amd_mbec.c:189:32: warning: 'bmec_feature' defined but not used [-Wunused-const-variable=]
     189 | static const struct x86_cpu_id bmec_feature[] = {
         |                                ^~~~~~~~~~~~

vim +/bmec_feature +189 fs/resctrl2/arch/x86/amd_mbec.c

188

 > 189	static const struct x86_cpu_id bmec_feature[] = {

190 X86_MATCH_FEATURE(X86_FEATURE_BMEC, 0),
191 { }
192 };
193 MODULE_DEVICE_TABLE(x86cpu, bmec_feature);
194

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