Skip to content

Commit 6d778f6

Browse files
fancertsbogend
authored andcommitted
mips: zboot: Fix "no previous prototype" build warning
Without having the putc() prototype forwardly declared the next build-warning is printed: arch/mips/boot/compressed/uart-prom.c:6:6: warning: no previous prototype for ‘putc’ [-Wmissing-prototypes] ... Fix that by adding the "decompress.h" header file with the putc() function declaration to the source files which have the method redefined. Signed-off-by: Serge Semin <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent a640d67 commit 6d778f6

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

arch/mips/boot/compressed/uart-16550.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include <asm/addrspace.h>
1010

11+
#include "decompress.h"
12+
1113
#if defined(CONFIG_MACH_LOONGSON64) || defined(CONFIG_MIPS_MALTA)
1214
#define UART_BASE 0x1fd003f8
1315
#define PORT(offset) (CKSEG1ADDR(UART_BASE) + (offset))

arch/mips/boot/compressed/uart-alchemy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include <asm/mach-au1x00/au1000.h>
33

4+
#include "decompress.h"
5+
46
void putc(char c)
57
{
68
alchemy_uart_putchar(AU1000_UART0_PHYS_ADDR, c);

arch/mips/boot/compressed/uart-prom.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include <asm/setup.h>
33

4+
#include "decompress.h"
5+
46
void putc(char c)
57
{
68
prom_putchar(c);

0 commit comments

Comments
 (0)