Преглед изворни кода

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>
Michael Ellerman пре 12 година
родитељ
комит
88c6d62641
2 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 1
      arch/powerpc/xmon/nonstdio.c
  2. 0 1
      arch/powerpc/xmon/nonstdio.h

+ 1 - 1
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;
 

+ 0 - 1
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 *, ...);