aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/microcode/intel.c
diff options
context:
space:
mode:
authorBorislav Petkov (AMD) <[email protected]>2023-01-24 19:01:05 +0100
committerBorislav Petkov (AMD) <[email protected]>2023-01-26 11:15:20 +0100
commit793207bad71c5339c614d12ac21d627da7bf771d (patch)
treef4adafc0e519274f2f6d853a4ecc81ffa3eb54d5 /arch/x86/kernel/cpu/microcode/intel.c
parent0a363fb23ee2f7beb08437ad7db86d195878d79f (diff)
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 <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Acked-by: Reinette Chatre <[email protected]> Tested-by: Babu Moger <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/intel.c')
0 files changed, 0 insertions, 0 deletions