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

sh: boot: Add proper forward declarations

arch/sh/boot/compressed/misc.c:110:6: warning: no previous prototype for ‘ftrace_stub’ [-Wmissing-prototypes]
arch/sh/boot/compressed/misc.c:113:6: warning: no previous prototype for ‘arch_ftrace_ops_list_func’ [-Wmissing-prototypes]
arch/sh/boot/compressed/misc.c:123:6: warning: no previous prototype for ‘decompress_kernel’ [-Wmissing-prototypes]

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Link: https://lore.kernel.org/r/b7ea770a3bf26fb2a5f59f4bb83072b2526f7134.1713959841.git.geert+renesas@glider.be
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>

authored by

Geert Uytterhoeven and committed by
John Paul Adrian Glaubitz
21b86515 25c7d77d

+11
+2
arch/sh/boot/compressed/misc.c
··· 16 16 #include <asm/addrspace.h> 17 17 #include <asm/page.h> 18 18 19 + #include "misc.h" 20 + 19 21 /* 20 22 * gzip declarations 21 23 */
+9
arch/sh/boot/compressed/misc.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 2 + #ifndef MISC_H 3 + #define MISC_H 4 + 5 + void arch_ftrace_ops_list_func(void); 6 + void decompress_kernel(void); 7 + void ftrace_stub(void); 8 + 9 + #endif /* MISC_H */