]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/hyperv: fix a compiler warning in hv_crash.c
authorMukesh R <mrathor@linux.microsoft.com>
Wed, 4 Feb 2026 06:11:38 +0000 (06:11 +0000)
committerWei Liu <wei.liu@kernel.org>
Wed, 4 Feb 2026 06:11:38 +0000 (06:11 +0000)
Fix a compiler warning that status is defined by not used.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202512301641.FC6OAbGM-lkp@intel.com/
Signed-off-by: Mukesh R <mrathor@linux.microsoft.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
arch/x86/hyperv/hv_crash.c

index c0e22921ace1a4eb8d1f2259866d6484022425da..3f99894a29427e646269239baa97b50b3a63857f 100644 (file)
@@ -279,7 +279,6 @@ static void hv_notify_prepare_hyp(void)
 static noinline __noclone void crash_nmi_callback(struct pt_regs *regs)
 {
        struct hv_input_disable_hyp_ex *input;
-       u64 status;
        int msecs = 1000, ccpu = smp_processor_id();
 
        if (ccpu == 0) {
@@ -313,7 +312,7 @@ static noinline __noclone void crash_nmi_callback(struct pt_regs *regs)
        input->rip = trampoline_pa;
        input->arg = devirt_arg;
 
-       status = hv_do_hypercall(HVCALL_DISABLE_HYP_EX, input, NULL);
+       (void)hv_do_hypercall(HVCALL_DISABLE_HYP_EX, input, NULL);
 
        hv_panic_timeout_reboot();
 }