Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/entry: Remove idtentry_sysvec from entry_{32,64}.S

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

authored by

Xin Li and committed by
Thomas Gleixner
3167b37f a4cb5ece

+1 -13
-4
arch/x86/entry/entry_32.S
··· 649 649 SYM_CODE_END(asm_\cfunc) 650 650 .endm 651 651 652 - .macro idtentry_sysvec vector cfunc 653 - idtentry \vector asm_\cfunc \cfunc has_error_code=0 654 - .endm 655 - 656 652 /* 657 653 * Include the defines which emit the idt entries which are shared 658 654 * shared between 32 and 64 bit and emit the __irqentry_text_* markers
-8
arch/x86/entry/entry_64.S
··· 370 370 idtentry \vector asm_\cfunc \cfunc has_error_code=1 371 371 .endm 372 372 373 - /* 374 - * System vectors which invoke their handlers directly and are not 375 - * going through the regular common device interrupt handling code. 376 - */ 377 - .macro idtentry_sysvec vector cfunc 378 - idtentry \vector asm_\cfunc \cfunc has_error_code=0 379 - .endm 380 - 381 373 /** 382 374 * idtentry_mce_db - Macro to generate entry stubs for #MC and #DB 383 375 * @vector: Vector number
+1 -1
arch/x86/include/asm/idtentry.h
··· 447 447 448 448 /* System vector entries */ 449 449 #define DECLARE_IDTENTRY_SYSVEC(vector, func) \ 450 - idtentry_sysvec vector func 450 + DECLARE_IDTENTRY(vector, func) 451 451 452 452 #ifdef CONFIG_X86_64 453 453 # define DECLARE_IDTENTRY_MCE(vector, func) \