1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/x86/kernel/cpu/resctrl
Borislav Petkov (AMD) 793207bad7 x86/resctrl: Fix a silly -Wunused-but-set-variable warning
clang correctly complains

  arch/x86/kernel/cpu/resctrl/rdtgroup.c:1456:6: warning: variable \
     'h' set but not used [-Wunused-but-set-variable]
          u32 h;
              ^

but it can't know whether this use is innocuous or really a problem.
There's a reason why those warning switches are behind a W=1 and not
enabled by default - yes, one needs to do:

  make W=1 CC=clang HOSTCC=clang arch/x86/kernel/cpu/resctrl/

with clang 14 in order to trigger it.

I would normally not take a silly fix like that but this one is simple
and doesn't make the code uglier so...

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/202301242015.kbzkVteJ-lkp@intel.com
2023-01-26 11:15:20 +01:00
..
core.c x86/resctrl: Add __init attribute to rdt_get_mon_l3_config() 2023-01-23 17:40:11 +01:00
ctrlmondata.c x86/resctrl: Detect and configure Slow Memory Bandwidth Allocation 2023-01-23 17:38:44 +01:00
internal.h x86/resctrl: Add interface to read mbm_total_bytes_config 2023-01-23 17:40:24 +01:00
Makefile x86/resctrl: Avoid confusion over the new X86_RESCTRL config 2019-02-02 10:34:52 +01:00
monitor.c x86/resctrl: Add interface to write mbm_total_bytes_config 2023-01-23 17:40:30 +01:00
pseudo_lock.c Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
pseudo_lock_event.h x86/resctrl: Rename and move rdt files to a separate directory 2018-11-22 20:16:18 +01:00
rdtgroup.c x86/resctrl: Fix a silly -Wunused-but-set-variable warning 2023-01-26 11:15:20 +01:00