From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751432AbdFEJSW (ORCPT ); Mon, 5 Jun 2017 05:18:22 -0400 Received: from terminus.zytor.com ([65.50.211.136]:43145 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274AbdFEJSV (ORCPT ); Mon, 5 Jun 2017 05:18:21 -0400 Date: Mon, 5 Jun 2017 02:14:47 -0700 From: tip-bot for Jiri Slaby Message-ID: Cc: peterz@infradead.org, jslaby@suse.cz, torvalds@linux-foundation.org, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de Reply-To: peterz@infradead.org, jslaby@suse.cz, torvalds@linux-foundation.org, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de In-Reply-To: <20170531081243.5709-1-jslaby@suse.cz> References: <20170531081243.5709-1-jslaby@suse.cz> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/boot] x86/boot: Remove unused copy_*_gs() functions Git-Commit-ID: 28be1b454c2bb60e317b3135211a378fa2718886 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: 28be1b454c2bb60e317b3135211a378fa2718886 Gitweb: http://git.kernel.org/tip/28be1b454c2bb60e317b3135211a378fa2718886 Author: Jiri Slaby AuthorDate: Wed, 31 May 2017 10:12:39 +0200 Committer: Ingo Molnar CommitDate: Mon, 5 Jun 2017 09:35:16 +0200 x86/boot: Remove unused copy_*_gs() functions copy_from_gs() and copy_to_gs() are unused in the boot code. They have actually never been used -- they were always commented out since their addition in 2007: 5be865661516 ("String-handling functions for the new x86 setup code.") So remove them -- they can be restored from history if needed. Signed-off-by: Jiri Slaby Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20170531081243.5709-1-jslaby@suse.cz Signed-off-by: Ingo Molnar --- arch/x86/boot/copy.S | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/arch/x86/boot/copy.S b/arch/x86/boot/copy.S index 1eb7d29..15d9f74 100644 --- a/arch/x86/boot/copy.S +++ b/arch/x86/boot/copy.S @@ -65,23 +65,3 @@ GLOBAL(copy_to_fs) popw %es retl ENDPROC(copy_to_fs) - -#if 0 /* Not currently used, but can be enabled as needed */ -GLOBAL(copy_from_gs) - pushw %ds - pushw %gs - popw %ds - calll memcpy - popw %ds - retl -ENDPROC(copy_from_gs) - -GLOBAL(copy_to_gs) - pushw %es - pushw %gs - popw %es - calll memcpy - popw %es - retl -ENDPROC(copy_to_gs) -#endif