diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2012-10-09 00:20:31 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-11-14 20:59:43 -0500 |
commit | 88c6d62641514686e0b1b0e33d9faf1e39ec7e58 (patch) | |
tree | 99eac6028b0d0c47eb78c6987e0d2ac0d2d65544 /arch/powerpc/xmon | |
parent | 08702c73a6182d0f6a429271383a553abc92c0b8 (diff) |
powerpc/xmon: Make xmon_getchar() static
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>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r-- | arch/powerpc/xmon/nonstdio.c | 2 | ||||
-rw-r--r-- | arch/powerpc/xmon/nonstdio.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/xmon/nonstdio.c b/arch/powerpc/xmon/nonstdio.c index a225d8046652..2209485e6564 100644 --- a/arch/powerpc/xmon/nonstdio.c +++ b/arch/powerpc/xmon/nonstdio.c | |||
@@ -23,7 +23,7 @@ static char line[256]; | |||
23 | static char *lineptr; | 23 | static char *lineptr; |
24 | static int lineleft; | 24 | static int lineleft; |
25 | 25 | ||
26 | int xmon_getchar(void) | 26 | static int xmon_getchar(void) |
27 | { | 27 | { |
28 | int c; | 28 | int c; |
29 | 29 | ||
diff --git a/arch/powerpc/xmon/nonstdio.h b/arch/powerpc/xmon/nonstdio.h index 8799ccf29117..321284f4281d 100644 --- a/arch/powerpc/xmon/nonstdio.h +++ b/arch/powerpc/xmon/nonstdio.h | |||
@@ -4,7 +4,6 @@ | |||
4 | #define putchar xmon_putchar | 4 | #define putchar xmon_putchar |
5 | 5 | ||
6 | extern int xmon_putchar(int c); | 6 | extern int xmon_putchar(int c); |
7 | extern int xmon_getchar(void); | ||
8 | extern void xmon_puts(const char *); | 7 | extern void xmon_puts(const char *); |
9 | extern char *xmon_gets(char *, int); | 8 | extern char *xmon_gets(char *, int); |
10 | extern void xmon_printf(const char *, ...); | 9 | extern void xmon_printf(const char *, ...); |