From: Gerd Knorr <kraxel@suse.de>
To: Kernel List <linux-kernel@vger.kernel.org>, Andi Kleen <ak@suse.de>
Subject: [x86_64 PATCH 1/2] build fix -- show_stack
Date: Tue, 24 Jun 2003 17:49:52 +0200 [thread overview]
Message-ID: <20030624154951.GA30885@bytesex.org> (raw)
Hi,
Trivial fix for show_stack() to make 2.5.73 build.
Gerd
--- o-linux-2.5.73/arch/x86_64/kernel/traps.c.stack 2003-06-24 12:04:20.000000000 +0200
+++ o-linux-2.5.73/arch/x86_64/kernel/traps.c 2003-06-24 12:16:06.000000000 +0200
@@ -206,7 +206,7 @@
show_trace((unsigned long *)rsp);
}
-void show_stack(unsigned long * rsp)
+void show_stack(struct task_struct *task, unsigned long *rsp)
{
unsigned long *stack;
int i;
@@ -269,7 +269,7 @@
if (in_kernel) {
printk("Stack: ");
- show_stack((unsigned long*)rsp);
+ show_stack(current, (unsigned long*)rsp);
printk("\nCode: ");
if(regs->rip < PAGE_OFFSET)
--- o-linux-2.5.73/include/asm-x86_64/proto.h.stack 2003-06-24 12:03:24.000000000 +0200
+++ o-linux-2.5.73/include/asm-x86_64/proto.h 2003-06-24 12:16:30.000000000 +0200
@@ -52,7 +52,10 @@
extern unsigned long cpu_initialized;
+#if 0
+// prototype moved to linux/sched.h ...
extern void show_stack(unsigned long * rsp);
+#endif
extern void show_trace(unsigned long * rsp);
extern void show_registers(struct pt_regs *regs);
next reply other threads:[~2003-06-24 15:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-24 15:49 Gerd Knorr [this message]
2003-06-24 15:47 ` [x86_64 PATCH 1/2] build fix -- show_stack Andi Kleen
2003-06-24 15:52 ` [x86_64 PATCH 2/2] " Gerd Knorr
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=20030624154951.GA30885@bytesex.org \
--to=kraxel@suse.de \
--cc=ak@suse.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.