From: Adrian Bunk <bunk@stusta.de>
To: ak@suse.de, discuss@x86-64.org
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] x86_64 traps.c: remove an unused function
Date: Tue, 7 Dec 2004 01:49:37 +0100 [thread overview]
Message-ID: <20041207004937.GU7250@stusta.de> (raw)
The patch below removes an unused function.
It's not compilation tested but grep showed it's unused and I'd already
send a similar patch for i386.
diffstat output:
arch/x86_64/kernel/traps.c | 9 ---------
1 files changed, 9 deletions(-)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.10-rc2-mm4-full/arch/x86_64/kernel/traps.c.old 2004-12-07 01:47:04.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/arch/x86_64/kernel/traps.c 2004-12-07 01:47:25.000000000 +0100
@@ -408,15 +408,6 @@
do_exit(SIGSEGV);
}
-static inline unsigned long get_cr2(void)
-{
- unsigned long address;
-
- /* get the address */
- __asm__("movq %%cr2,%0":"=r" (address));
- return address;
-}
-
static void do_trap(int trapnr, int signr, char *str,
struct pt_regs * regs, long error_code, siginfo_t *info)
{
next reply other threads:[~2004-12-07 0:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-07 0:49 Adrian Bunk [this message]
2005-01-17 9:30 ` [2.6 patch] x86_64 traps.c: remove an unused function Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041207004937.GU7250@stusta.de \
--to=bunk@stusta.de \
--cc=ak@suse.de \
--cc=discuss@x86-64.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox