[PATCH -next] x86: Fix intel cpu unsed variable ‘l2’ warning

2021-03-22 Thread Xu Yihang
warning. Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/kernel/cpu/intel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c index 63e381a46153..547ba6668eb3 100644 --- a/arch/x86/kernel/cpu/intel.c +++ b/arch/x86/kernel/cpu

[PATCH -next] x86: Fix unused variable 'hi'

2021-03-22 Thread Xu Yihang
CROSS_COMPILE=x86_64-linux-gnu- HV_X64_MSR_EOI stores on bit 31:0 and HV_X64_MSR_TPR stores in bit 7:0, which means higher 32 bits are not really used, therefore potentially cast to void in order to silent this warning. Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/hyperv

[PATCH -next] x86: Fix unused variable 'msr_val' warning

2021-03-22 Thread Xu Yihang
ially cast to void in order to silent this warning. Reference: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/tlfs Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/hyperv/hv_spinlock.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --

[PATCH -next] x86: Fix unused variable 'msr_val' warning

2021-03-21 Thread Xu Yihang
ybe_unused should be added. Reference: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/tlfs Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/hyperv/hv_spinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/hyperv/hv_spinloc

[no subject]

2021-03-21 Thread Xu Yihang
Git message updated.

[PATCH -next] x86: Fix unused variable 'hi'

2021-03-21 Thread Xu Yihang
CROSS_COMPILE=x86_64-linux-gnu- HV_X64_MSR_EOI stores on bit 31:0 and HV_X64_MSR_TPR stores in bit 7:0, which means higher 32 bits are not really used, therefore __maybe_unused added. Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/hyperv/hv_apic.c | 3 ++- 1 file changed, 2

[PATCH -next] x86: Fix unused variable 'hi'

2021-03-18 Thread Xu Yihang
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] Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/hyperv/hv_apic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH -next] x86: Fix unused variable 'msr_val' warning

2021-03-18 Thread Xu Yihang
Fixes the following W=1 kernel build warning(s): arch/x86/hyperv/hv_spinlock.c:28:16: warning: variable ‘msr_val’ set but not used [-Wunused-but-set-variable] unsigned long msr_val; Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- arch/x86/hyperv/hv_spinlock.c | 2 +- 1 file changed, 1

[PATCH -next] ext4: fix error return code in ext4_fc_perform_commit()

2021-04-08 Thread Xu Yihang
In case of if not ext4_fc_add_tlv branch, an error return code is missing. Fixes: aa75f4d3daae ("ext4: main fast-commit commit path") Reported-by: Hulk Robot Signed-off-by: Xu Yihang --- fs/ext4/fast_commit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git