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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/202307181221.bYTu62iK-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230718/202307181221.bYTu62iK-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307181221.bYTu62iK-lkp@xxxxxxxxx/

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



[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux