diff options
author | Tony Luck <tony.luck@intel.com> | 2023-11-01 14:26:15 -0700 |
---|---|---|
committer | Borislav Petkov (AMD) <bp@alien8.de> | 2024-01-22 19:54:54 +0100 |
commit | 1b908debf53ff3cf0e43e0fa51e7319a23518e6c (patch) | |
tree | 1314d791b4725b6702aebd515bac93ed05cd3727 /net/sched | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
x86/resctrl: Fix unused variable warning in cache_alloc_hsw_probe()
In a "W=1" build gcc throws a warning:
arch/x86/kernel/cpu/resctrl/core.c: In function ‘cache_alloc_hsw_probe’:
arch/x86/kernel/cpu/resctrl/core.c:139:16: warning: variable ‘h’ set but not used
Switch from wrmsr_safe() to wrmsrl_safe(), and from rdmsr() to rdmsrl()
using a single u64 argument for the MSR value instead of the pair of u32
for the high and low halves.
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Babu Moger <babu.moger@amd.com>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://lore.kernel.org/r/ZULCd/TGJL9Dmncf@agluck-desk3
Diffstat (limited to 'net/sched')
0 files changed, 0 insertions, 0 deletions