From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753024AbdH2LVs (ORCPT ); Tue, 29 Aug 2017 07:21:48 -0400 Received: from terminus.zytor.com ([65.50.211.136]:42545 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753002AbdH2LVq (ORCPT ); Tue, 29 Aug 2017 07:21:46 -0400 Date: Tue, 29 Aug 2017 04:16:00 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: jpoimboe@redhat.com, mingo@kernel.org, tglx@linutronix.de, luto@kernel.org, dvlasenk@redhat.com, brgerst@gmail.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, peterz@infradead.org, torvalds@linux-foundation.org, bp@alien8.de, hpa@zytor.com Reply-To: bp@alien8.de, hpa@zytor.com, torvalds@linux-foundation.org, peterz@infradead.org, rostedt@goodmis.org, linux-kernel@vger.kernel.org, brgerst@gmail.com, dvlasenk@redhat.com, luto@kernel.org, tglx@linutronix.de, mingo@kernel.org, jpoimboe@redhat.com In-Reply-To: <20170828064958.522053134@linutronix.de> References: <20170828064958.522053134@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/apic] x86/idt: Remove unused set_trap_gate() Git-Commit-ID: 8f55868f9e42fea56021b17421914b9e4fda4960 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: 8f55868f9e42fea56021b17421914b9e4fda4960 Gitweb: http://git.kernel.org/tip/8f55868f9e42fea56021b17421914b9e4fda4960 Author: Thomas Gleixner AuthorDate: Mon, 28 Aug 2017 08:47:45 +0200 Committer: Ingo Molnar CommitDate: Tue, 29 Aug 2017 12:07:26 +0200 x86/idt: Remove unused set_trap_gate() This inline is not used at all. 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/20170828064958.522053134@linutronix.de Signed-off-by: Ingo Molnar --- arch/x86/include/asm/desc.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h index 108a9e8..51b3d48 100644 --- a/arch/x86/include/asm/desc.h +++ b/arch/x86/include/asm/desc.h @@ -446,18 +446,6 @@ static inline void set_system_intr_gate(unsigned int n, void *addr) _set_gate(n, GATE_INTERRUPT, addr, 0x3, 0, __KERNEL_CS); } -static inline void set_system_trap_gate(unsigned int n, void *addr) -{ - BUG_ON((unsigned)n > 0xFF); - _set_gate(n, GATE_TRAP, addr, 0x3, 0, __KERNEL_CS); -} - -static inline void set_trap_gate(unsigned int n, void *addr) -{ - BUG_ON((unsigned)n > 0xFF); - _set_gate(n, GATE_TRAP, addr, 0, 0, __KERNEL_CS); -} - static inline void set_task_gate(unsigned int n, unsigned int gdt_entry) { BUG_ON((unsigned)n > 0xFF);