Skip to content

Commit 5c84bc8

Browse files
arndbmpe
authored andcommitted
powerpc: udbg_memcons: mark functions static
ppc64_book3e_allmodconfig has one more driver that triggeres a few missing-prototypes warnings: arch/powerpc/sysdev/udbg_memcons.c:44:6: error: no previous prototype for 'memcons_putc' [-Werror=missing-prototypes] arch/powerpc/sysdev/udbg_memcons.c:57:5: error: no previous prototype for 'memcons_getc_poll' [-Werror=missing-prototypes] arch/powerpc/sysdev/udbg_memcons.c:80:5: error: no previous prototype for 'memcons_getc' [-Werror=missing-prototypes] Mark all these function static as there are no other users. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240123125148.2004648-1-arnd@kernel.org
1 parent 4a7aee9 commit 5c84bc8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/powerpc/sysdev/udbg_memcons.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ struct memcons memcons = {
4141
.input_end = &memcons_input[CONFIG_PPC_MEMCONS_INPUT_SIZE],
4242
};
4343

44-
void memcons_putc(char c)
44+
static void memcons_putc(char c)
4545
{
4646
char *new_output_pos;
4747

@@ -54,7 +54,7 @@ void memcons_putc(char c)
5454
memcons.output_pos = new_output_pos;
5555
}
5656

57-
int memcons_getc_poll(void)
57+
static int memcons_getc_poll(void)
5858
{
5959
char c;
6060
char *new_input_pos;
@@ -77,7 +77,7 @@ int memcons_getc_poll(void)
7777
return -1;
7878
}
7979

80-
int memcons_getc(void)
80+
static int memcons_getc(void)
8181
{
8282
int c;
8383

0 commit comments

Comments
 (0)