mips: zboot: Fix "no previous prototype" build warning
authorSerge Semin <fancer.lancer@gmail.com>
Thu, 15 Feb 2024 17:17:28 +0000 (20:17 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 23 Feb 2024 09:14:06 +0000 (10:14 +0100)
commit6d778f61bedabc69be37dcdcabf4a7dc9a7b96d2
treeb782ecdd8341dd4df28780dcd3346f770191b1d1
parenta640d6762a7d404644201ebf6d2a078e8dc84f97
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>
arch/mips/boot/compressed/uart-16550.c
arch/mips/boot/compressed/uart-alchemy.c
arch/mips/boot/compressed/uart-prom.c