[aegl:resctrl2_v65rc1 11/11] fs/resctrl2/arch/x86/rdt_l2_cdp.c:85:13: warning: variable 'cache_level' set but not used

kernel test robot <[email protected]>
Newsgroups gmane.linux.ports.ia64
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git resctrl2_v65rc1
head:   16f9fb3b3a3875cdb7f611d60e5072ed15feec27
commit: 16f9fb3b3a3875cdb7f611d60e5072ed15feec27 [11/11] resctrl2: Fix name collision on get_cache_size()
config: i386-randconfig-r006-20230718 (https://download.01.org/0day-ci/archive/20230718/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230718/[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/rdt_l2_cdp.c: In function 'get_cache_slice_size':
>> fs/resctrl2/arch/x86/rdt_l2_cdp.c:85:13: warning: variable 'cache_level' set but not used [-Wunused-but-set-variable]
      85 |         int cache_level;
         |             ^~~~~~~~~~~
--
   fs/resctrl2/arch/x86/rdt_l3_cdp.c: In function 'get_cache_slice_size':
>> fs/resctrl2/arch/x86/rdt_l3_cdp.c:85:13: warning: variable 'cache_level' set but not used [-Wunused-but-set-variable]
      85 |         int cache_level;
         |             ^~~~~~~~~~~
--
   fs/resctrl2/arch/x86/rdt_l3_cat.c: In function 'get_cache_slice_size':
>> fs/resctrl2/arch/x86/rdt_l3_cat.c:85:13: warning: variable 'cache_level' set but not used [-Wunused-but-set-variable]
      85 |         int cache_level;
         |             ^~~~~~~~~~~
--
   fs/resctrl2/arch/x86/rdt_l2_cat.c: In function 'get_cache_slice_size':
>> fs/resctrl2/arch/x86/rdt_l2_cat.c:85:13: warning: variable 'cache_level' set but not used [-Wunused-but-set-variable]
      85 |         int cache_level;
         |             ^~~~~~~~~~~


vim +/cache_level +85 fs/resctrl2/arch/x86/rdt_l2_cdp.c

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.