[PATCH 04/20] powerpc/xmon: Make xmon_getchar() static
Michael Ellerman
michael at ellerman.id.au
Wed Oct 10 01:20:31 EST 2012
xmon_getchar() is only called from within nonstdio.c, so make it static.
Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---
arch/powerpc/xmon/nonstdio.c | 2 +-
arch/powerpc/xmon/nonstdio.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/powerpc/xmon/nonstdio.c b/arch/powerpc/xmon/nonstdio.c
index a225d80..2209485 100644
--- a/arch/powerpc/xmon/nonstdio.c
+++ b/arch/powerpc/xmon/nonstdio.c
@@ -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;
diff --git a/arch/powerpc/xmon/nonstdio.h b/arch/powerpc/xmon/nonstdio.h
index 8799ccf..321284f 100644
--- a/arch/powerpc/xmon/nonstdio.h
+++ b/arch/powerpc/xmon/nonstdio.h
@@ -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 *, ...);
--
1.7.9.5
More information about the Linuxppc-dev
mailing list