From: Stafford Horne Date: Mon, 21 Aug 2023 04:31:18 +0000 (+0100) Subject: openrisc: Include cpu.h and switch_to.h for prototypes X-Git-Tag: v6.6-rc1~55^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=136a2d894105843f19170614429bf12f1789e680;p=thirdparty%2Fkernel%2Flinux.git openrisc: Include cpu.h and switch_to.h for prototypes When compiling with W=1 enabling -Wmissing-prototypes the compiler warns: arch/openrisc/kernel/process.c:100:6: error: no previous prototype for 'arch_cpu_idle' [-Werror=missing-prototypes] arch/openrisc/kernel/process.c:240:21: error: no previous prototype for '__switch_to' [-Werror=missing-prototypes] Fix these by adding the approrpiate header files to process.c which brings in the prototype definitions. Reported-by: Arnd Bergmann Closes: https://lore.kernel.org/linux-kernel/20230810141947.1236730-17-arnd@kernel.org/ Signed-off-by: Stafford Horne --- diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c index a07512de0169b..86e02929f3ace 100644 --- a/arch/openrisc/kernel/process.c +++ b/arch/openrisc/kernel/process.c @@ -14,6 +14,7 @@ */ #define __KERNEL_SYSCALLS__ +#include #include #include #include @@ -38,6 +39,7 @@ #include #include #include +#include #include