powerpc/xmon: Make xmon_getchar() static
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 9 Oct 2012 04:20:31 +0000 (04:20 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 15 Nov 2012 01:59:43 +0000 (12:59 +1100)
xmon_getchar() is only called from within nonstdio.c, so make it static.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/xmon/nonstdio.c
arch/powerpc/xmon/nonstdio.h

index a225d8046652f7513e6d212ddec65c385a24dd41..2209485e656452c1f90993f4bdd26327821af564 100644 (file)
@@ -23,7 +23,7 @@ static char line[256];
 static char *lineptr;
 static int lineleft;
 
-int xmon_getchar(void)
+static int xmon_getchar(void)
 {
        int c;
 
index 8799ccf29117f38900078efb2b6cb1573edfaedd..321284f4281d5efa3a7e079b62aba4a1c605f515 100644 (file)
@@ -4,7 +4,6 @@
 #define putchar        xmon_putchar
 
 extern int xmon_putchar(int c);
-extern int xmon_getchar(void);
 extern void xmon_puts(const char *);
 extern char *xmon_gets(char *, int);
 extern void xmon_printf(const char *, ...);