Skip to content

Commit

Permalink
sparc: Do not export prom_nb{get,put}char().
Browse files Browse the repository at this point in the history
Never used outside of console_{32,64}.c

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Nov 17, 2010
1 parent c540ee7 commit 91921fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
6 changes: 0 additions & 6 deletions arch/sparc/include/asm/oplib_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ extern int prom_getprev(void);

/* Character operations to/from the console.... */

/* Non-blocking get character from console. */
extern int prom_nbgetchar(void);

/* Non-blocking put character to console. */
extern int prom_nbputchar(char character);

/* Blocking get character from console. */
extern char prom_getchar(void);

Expand Down
6 changes: 0 additions & 6 deletions arch/sparc/include/asm/oplib_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ extern unsigned char prom_get_idprom(char *idp_buffer, int idpbuf_size);

/* Character operations to/from the console.... */

/* Non-blocking get character from console. */
extern int prom_nbgetchar(void);

/* Non-blocking put character to console. */
extern int prom_nbputchar(char character);

/* Blocking get character from console. */
extern char prom_getchar(void);

Expand Down
6 changes: 2 additions & 4 deletions arch/sparc/prom/console_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ extern void restore_current(void);
/* Non blocking get character from console input device, returns -1
* if no input was taken. This can be used for polling.
*/
int
prom_nbgetchar(void)
static int prom_nbgetchar(void)
{
static char inc;
int i = -1;
Expand Down Expand Up @@ -51,8 +50,7 @@ prom_nbgetchar(void)
/* Non blocking put character to console device, returns -1 if
* unsuccessful.
*/
int
prom_nbputchar(char c)
static int prom_nbputchar(char c)
{
static char outc;
unsigned long flags;
Expand Down
6 changes: 2 additions & 4 deletions arch/sparc/prom/console_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ extern int prom_stdin, prom_stdout;
/* Non blocking get character from console input device, returns -1
* if no input was taken. This can be used for polling.
*/
inline int
prom_nbgetchar(void)
static int prom_nbgetchar(void)
{
unsigned long args[7];
char inc;
Expand All @@ -42,8 +41,7 @@ prom_nbgetchar(void)
/* Non blocking put character to console device, returns -1 if
* unsuccessful.
*/
inline int
prom_nbputchar(char c)
static int prom_nbputchar(char c)
{
unsigned long args[7];
char outc;
Expand Down

0 comments on commit 91921fe

Please sign in to comment.