aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorXu Yihang <[email protected]>2021-03-23 02:50:13 +0000
committerWei Liu <[email protected]>2021-03-24 11:32:56 +0000
commit1b60280834683dddf4975bbf9662a74f123ba770 (patch)
tree5da8aa2f7115d3917cb1aad3f0d660fceee06f46 /lib/dynamic_debug.c
parentx86/hyperv: Fix unused variable 'msr_val' warning in hv_qlock_wait (diff)
downloadkernel-1b60280834683dddf4975bbf9662a74f123ba770.tar.gz
kernel-1b60280834683dddf4975bbf9662a74f123ba770.zip
x86/hyperv: Fix unused variable 'hi' warning in hv_apic_read
Fixes the following W=1 kernel build warning(s): arch/x86/hyperv/hv_apic.c:58:15: warning: variable ‘hi’ set but not used [-Wunused-but-set-variable] Compiled with CONFIG_HYPERV enabled: make allmodconfig ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- make W=1 arch/x86/hyperv/hv_apic.o ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- HV_X64_MSR_EOI occupies bit 31:0 and HV_X64_MSR_TPR occupies bit 7:0, which means the higher 32 bits are not really used. Cast the variable hi to void to silence this warning. Reported-by: Hulk Robot <[email protected]> Signed-off-by: Xu Yihang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions