Skip to content

Commit

Permalink
powerpc/xmon: Make xmon_getchar() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman authored and Benjamin Herrenschmidt committed Nov 15, 2012
1 parent 08702c7 commit 88c6d62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/xmon/nonstdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion arch/powerpc/xmon/nonstdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *, ...);
Expand Down

0 comments on commit 88c6d62

Please sign in to comment.