diff options
| author | Serge Semin <fancer.lancer@gmail.com> | 2024-02-15 20:17:28 +0300 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2024-02-23 10:14:06 +0100 |
| commit | 6d778f61bedabc69be37dcdcabf4a7dc9a7b96d2 (patch) | |
| tree | b782ecdd8341dd4df28780dcd3346f770191b1d1 /arch/mips/boot/compressed/uart-prom.c | |
| parent | a640d6762a7d404644201ebf6d2a078e8dc84f97 (diff) | |
| download | linux-6d778f61bedabc69be37dcdcabf4a7dc9a7b96d2.tar.gz linux-6d778f61bedabc69be37dcdcabf4a7dc9a7b96d2.tar.bz2 linux-6d778f61bedabc69be37dcdcabf4a7dc9a7b96d2.zip | |
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 <fancer.lancer@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/boot/compressed/uart-prom.c')
| -rw-r--r-- | arch/mips/boot/compressed/uart-prom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/boot/compressed/uart-prom.c b/arch/mips/boot/compressed/uart-prom.c index a8a0a32e05d1..5fa3b9945333 100644 --- a/arch/mips/boot/compressed/uart-prom.c +++ b/arch/mips/boot/compressed/uart-prom.c @@ -1,6 +1,8 @@ // SPDX-License-Identifier: GPL-2.0 #include <asm/setup.h> +#include "decompress.h" + void putc(char c) { prom_putchar(c); |
