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

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Arnd Bergmann and committed by
Michael Ellerman
5c84bc8b 4a7aee96

+3 -3
+3 -3
arch/powerpc/sysdev/udbg_memcons.c
··· 41 41 .input_end = &memcons_input[CONFIG_PPC_MEMCONS_INPUT_SIZE], 42 42 }; 43 43 44 - void memcons_putc(char c) 44 + static void memcons_putc(char c) 45 45 { 46 46 char *new_output_pos; 47 47 ··· 54 54 memcons.output_pos = new_output_pos; 55 55 } 56 56 57 - int memcons_getc_poll(void) 57 + static int memcons_getc_poll(void) 58 58 { 59 59 char c; 60 60 char *new_input_pos; ··· 77 77 return -1; 78 78 } 79 79 80 - int memcons_getc(void) 80 + static int memcons_getc(void) 81 81 { 82 82 int c; 83 83