From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753328AbdH2L0P (ORCPT ); Tue, 29 Aug 2017 07:26:15 -0400 Received: from terminus.zytor.com ([65.50.211.136]:59663 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753149AbdH2L0L (ORCPT ); Tue, 29 Aug 2017 07:26:11 -0400 Date: Tue, 29 Aug 2017 04:20:27 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: jpoimboe@redhat.com, hpa@zytor.com, bp@alien8.de, luto@kernel.org, peterz@infradead.org, brgerst@gmail.com, tglx@linutronix.de, rostedt@goodmis.org, dvlasenk@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org Reply-To: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, mingo@kernel.org, dvlasenk@redhat.com, rostedt@goodmis.org, luto@kernel.org, peterz@infradead.org, tglx@linutronix.de, brgerst@gmail.com, bp@alien8.de, hpa@zytor.com, jpoimboe@redhat.com In-Reply-To: <20170828064959.422083717@linutronix.de> References: <20170828064959.422083717@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/idt: Remove unused functions/inlines Git-Commit-ID: 485fa57bd73a0b79987d144e15bdc582f926701d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 485fa57bd73a0b79987d144e15bdc582f926701d Gitweb: http://git.kernel.org/tip/485fa57bd73a0b79987d144e15bdc582f926701d Author: Thomas Gleixner AuthorDate: Mon, 28 Aug 2017 08:47:56 +0200 Committer: Ingo Molnar CommitDate: Tue, 29 Aug 2017 12:07:28 +0200 x86/idt: Remove unused functions/inlines The IDT related inlines are not longer used. Remove them. Signed-off-by: Thomas Gleixner Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Steven Rostedt Link: http://lkml.kernel.org/r/20170828064959.422083717@linutronix.de Signed-off-by: Ingo Molnar --- arch/x86/include/asm/desc.h | 36 ------------------------------------ 1 file changed, 36 deletions(-) diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h index cae0cb0..cbd36dd 100644 --- a/arch/x86/include/asm/desc.h +++ b/arch/x86/include/asm/desc.h @@ -390,16 +390,6 @@ static inline void set_desc_limit(struct desc_struct *desc, unsigned long limit) desc->limit1 = (limit >> 16) & 0xf; } -#ifdef CONFIG_X86_64 -static inline void set_nmi_gate(int gate, void *addr) -{ - gate_desc s; - - pack_gate(&s, GATE_INTERRUPT, (unsigned long)addr, 0, 0, __KERNEL_CS); - write_idt_entry(debug_idt_table, gate, &s); -} -#endif - static inline void _set_gate(int gate, unsigned type, const void *addr, unsigned dpl, unsigned ist, unsigned seg) { @@ -437,32 +427,6 @@ static inline void alloc_system_vector(int vector) set_intr_gate(n, addr); \ } while (0) -/* - * This routine sets up an interrupt gate at directory privilege level 3. - */ -static inline void set_system_intr_gate(unsigned int n, void *addr) -{ - BUG_ON((unsigned)n > 0xFF); - _set_gate(n, GATE_INTERRUPT, addr, 0x3, 0, __KERNEL_CS); -} - -static inline void set_task_gate(unsigned int n, unsigned int gdt_entry) -{ - BUG_ON((unsigned)n > 0xFF); - _set_gate(n, GATE_TASK, (void *)0, 0, 0, (gdt_entry<<3)); -} - -static inline void set_intr_gate_ist(int n, void *addr, unsigned ist) -{ - BUG_ON((unsigned)n > 0xFF); - _set_gate(n, GATE_INTERRUPT, addr, 0, ist, __KERNEL_CS); -} - -static inline void set_system_intr_gate_ist(int n, void *addr, unsigned ist) -{ - BUG_ON((unsigned)n > 0xFF); - _set_gate(n, GATE_INTERRUPT, addr, 0x3, ist, __KERNEL_CS); -} #ifdef CONFIG_X86_64 DECLARE_PER_CPU(u32, debug_idt_ctr);