From fba8dbeaf30e2c8db2c2cfeb38f6dbffcbf86bba Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Fri, 15 May 2020 17:39:05 +0200 Subject: [PATCH] x86/idt: Remove update_intr_gate() No more users. Signed-off-by: Thomas Gleixner --- arch/x86/include/asm/desc.h | 1 - arch/x86/kernel/idt.c | 8 -------- 2 files changed, 9 deletions(-) diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h index 68a99d2a5f33..085a2dd312b4 100644 --- a/arch/x86/include/asm/desc.h +++ b/arch/x86/include/asm/desc.h @@ -386,7 +386,6 @@ static inline void set_desc_limit(struct desc_struct *desc, unsigned long limit) desc->limit1 = (limit >> 16) & 0xf; } -void update_intr_gate(unsigned int n, const void *addr); void alloc_intr_gate(unsigned int n, const void *addr); extern unsigned long system_vectors[]; diff --git a/arch/x86/kernel/idt.c b/arch/x86/kernel/idt.c index 36fef90a38e7..95609ee4c8b3 100644 --- a/arch/x86/kernel/idt.c +++ b/arch/x86/kernel/idt.c @@ -360,14 +360,6 @@ void idt_invalidate(void *addr) load_idt(&idt); } -/* This goes away once ASYNC_PF is sanitized */ -void __init update_intr_gate(unsigned int n, const void *addr) -{ - if (WARN_ON_ONCE(!test_bit(n, system_vectors))) - return; - set_intr_gate(n, addr); -} - void __init alloc_intr_gate(unsigned int n, const void *addr) { if (WARN_ON(n < FIRST_SYSTEM_VECTOR)) -- 2.34.1