diff options
author | Stafford Horne <shorne@gmail.com> | 2023-08-21 05:31:18 +0100 |
---|---|---|
committer | Stafford Horne <shorne@gmail.com> | 2023-08-21 08:15:25 +0100 |
commit | 136a2d894105843f19170614429bf12f1789e680 (patch) | |
tree | 08dc0ea1409c2f6faa1ec36109e6d99850aa4b83 /arch/openrisc | |
parent | 31c67b5fabe351644b2612c6ba75da70aeb417b1 (diff) | |
download | linux-136a2d894105843f19170614429bf12f1789e680.tar.gz linux-136a2d894105843f19170614429bf12f1789e680.tar.bz2 linux-136a2d894105843f19170614429bf12f1789e680.zip |
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 <arnd@arndb.de>
Closes: https://lore.kernel.org/linux-kernel/20230810141947.1236730-17-arnd@kernel.org/
Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/process.c b/arch/openrisc/kernel/process.c index a07512de0169..86e02929f3ac 100644 --- a/arch/openrisc/kernel/process.c +++ b/arch/openrisc/kernel/process.c @@ -14,6 +14,7 @@ */ #define __KERNEL_SYSCALLS__ +#include <linux/cpu.h> #include <linux/errno.h> #include <linux/sched.h> #include <linux/sched/debug.h> @@ -38,6 +39,7 @@ #include <asm/io.h> #include <asm/processor.h> #include <asm/spr_defs.h> +#include <asm/switch_to.h> #include <linux/smp.h> |