x86/entry: Remove unused argument %rsi passed to exc_nmi()
authorXin Li (Intel) <xin@zytor.com>
Tue, 26 Sep 2023 06:13:19 +0000 (23:13 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 27 Sep 2023 08:04:54 +0000 (10:04 +0200)
exc_nmi() only takes one argument of type struct pt_regs *, but
asm_exc_nmi() calls it with 2 arguments. The second one passed
in %rsi seems to be a leftover, so simply remove it.

Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Link: https://lore.kernel.org/r/20230926061319.1929127-1-xin@zytor.com
arch/x86/entry/entry_64.S

index 43606de225117d1ccd1d776791b43d3022b8a4a0..fb8dd5648e3ac7dad191345bcc35df9470425b0e 100644 (file)
@@ -1237,7 +1237,6 @@ SYM_CODE_START(asm_exc_nmi)
         */
 
        movq    %rsp, %rdi
-       movq    $-1, %rsi
        call    exc_nmi
 
        /*
@@ -1451,7 +1450,6 @@ end_repeat_nmi:
        UNWIND_HINT_REGS
 
        movq    %rsp, %rdi
-       movq    $-1, %rsi
        call    exc_nmi
 
        /* Always restore stashed SPEC_CTRL value (see paranoid_entry) */