[PATCH] xmon compiler warning

jschopp at austin.ibm.com jschopp at austin.ibm.com
Sat Mar 20 07:28:35 EST 2004


I've been getting the compiler warning:

arch/ppc64/xmon/start.c: In function `xmon_readchar':
arch/ppc64/xmon/start.c:104: warning: implicit declaration of function
`xmon_printf'

for awhile now.  I've attached a very simple patch to make it go away.
I'll push to ameslab if there are no objections.

diff -Nru a/arch/ppc64/xmon/start.c b/arch/ppc64/xmon/start.c
--- a/arch/ppc64/xmon/start.c	Fri Mar 19 14:25:12 2004
+++ b/arch/ppc64/xmon/start.c	Fri Mar 19 14:25:12 2004
@@ -19,6 +19,7 @@
 #include <asm/processor.h>
 #include <asm/udbg.h>
 #include <asm/system.h>
+#include "nonstdio.h"

 #ifdef CONFIG_MAGIC_SYSRQ

@@ -63,10 +64,6 @@
 	return udbg_getc_poll();
 }

-void *xmon_stdin;
-void *xmon_stdout;
-void *xmon_stderr;
-
 int
 xmon_putc(int c, void *f)
 {


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list