x86/entry: Remove idtentry_sysvec from entry_{32,64}.S
authorXin Li <xin3.li@intel.com>
Tue, 5 Dec 2023 10:49:51 +0000 (02:49 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 25 Jan 2024 18:10:29 +0000 (19:10 +0100)
idtentry_sysvec is really just DECLARE_IDTENTRY defined in
<asm/idtentry.h>, no need to define it separately.

Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Shan Kang <shan.kang@intel.com>
Link: https://lore.kernel.org/r/20231205105030.8698-3-xin3.li@intel.com
arch/x86/entry/entry_32.S
arch/x86/entry/entry_64.S
arch/x86/include/asm/idtentry.h

index c73047bf9f4bff9c4631c0eab383cedceda41918..89a7ec0920ec51e5187785912796968935ccc5d1 100644 (file)
@@ -649,10 +649,6 @@ SYM_CODE_START_LOCAL(asm_\cfunc)
 SYM_CODE_END(asm_\cfunc)
 .endm
 
-.macro idtentry_sysvec vector cfunc
-       idtentry \vector asm_\cfunc \cfunc has_error_code=0
-.endm
-
 /*
  * Include the defines which emit the idt entries which are shared
  * shared between 32 and 64 bit and emit the __irqentry_text_* markers
index c40f89ab1b4c70a18b632a50c1e659e3fd83cfa9..29ce68f8ede04367adeaf29b60d61e149609a6ad 100644 (file)
@@ -370,14 +370,6 @@ SYM_CODE_END(\asmsym)
        idtentry \vector asm_\cfunc \cfunc has_error_code=1
 .endm
 
-/*
- * System vectors which invoke their handlers directly and are not
- * going through the regular common device interrupt handling code.
- */
-.macro idtentry_sysvec vector cfunc
-       idtentry \vector asm_\cfunc \cfunc has_error_code=0
-.endm
-
 /**
  * idtentry_mce_db - Macro to generate entry stubs for #MC and #DB
  * @vector:            Vector number
index 13639e57e1f8af4c24c0c656a9f0801516bf25f4..e9f71b3217c2d2d797aa9d6eb0acb91acd326b59 100644 (file)
@@ -447,7 +447,7 @@ __visible noinstr void func(struct pt_regs *regs,                   \
 
 /* System vector entries */
 #define DECLARE_IDTENTRY_SYSVEC(vector, func)                          \
-       idtentry_sysvec vector func
+       DECLARE_IDTENTRY(vector, func)
 
 #ifdef CONFIG_X86_64
 # define DECLARE_IDTENTRY_MCE(vector, func)                            \