Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael Ellerman and committed by
Benjamin Herrenschmidt
88c6d626 08702c73

+1 -2
+1 -1
arch/powerpc/xmon/nonstdio.c
··· 23 23 static char *lineptr; 24 24 static int lineleft; 25 25 26 - int xmon_getchar(void) 26 + static int xmon_getchar(void) 27 27 { 28 28 int c; 29 29
-1
arch/powerpc/xmon/nonstdio.h
··· 4 4 #define putchar xmon_putchar 5 5 6 6 extern int xmon_putchar(int c); 7 - extern int xmon_getchar(void); 8 7 extern void xmon_puts(const char *); 9 8 extern char *xmon_gets(char *, int); 10 9 extern void xmon_printf(const char *, ...);