Skip to content

Commit 8f55868

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
x86/idt: Remove unused set_trap_gate()
This inline is not used at all. Signed-off-by: Thomas Gleixner <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Brian Gerst <[email protected]> Cc: Denys Vlasenko <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 16bc18d commit 8f55868

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

arch/x86/include/asm/desc.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -446,18 +446,6 @@ static inline void set_system_intr_gate(unsigned int n, void *addr)
446446
_set_gate(n, GATE_INTERRUPT, addr, 0x3, 0, __KERNEL_CS);
447447
}
448448

449-
static inline void set_system_trap_gate(unsigned int n, void *addr)
450-
{
451-
BUG_ON((unsigned)n > 0xFF);
452-
_set_gate(n, GATE_TRAP, addr, 0x3, 0, __KERNEL_CS);
453-
}
454-
455-
static inline void set_trap_gate(unsigned int n, void *addr)
456-
{
457-
BUG_ON((unsigned)n > 0xFF);
458-
_set_gate(n, GATE_TRAP, addr, 0, 0, __KERNEL_CS);
459-
}
460-
461449
static inline void set_task_gate(unsigned int n, unsigned int gdt_entry)
462450
{
463451
BUG_ON((unsigned)n > 0xFF);

0 commit comments

Comments
 (0)