diff options
author | Vineet Gupta <vgupta@kernel.org> | 2023-08-13 03:23:59 +0200 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2023-08-14 01:53:02 +0200 |
commit | 4d3696801bad2a037832c15a8d21dfe0c529d9cd (patch) | |
tree | 3944d811d0e280b59a40914d4eb59604f6d393ed /arch/arc/kernel/ctx_sw.c | |
parent | Linux 6.5-rc6 (diff) | |
download | linux-4d3696801bad2a037832c15a8d21dfe0c529d9cd.tar.xz linux-4d3696801bad2a037832c15a8d21dfe0c529d9cd.zip |
ARC: -Wmissing-prototype warning fixes
Anrd reported [1] new compiler warnings due to -Wmissing-protype.
These are for non static functions mostly used in asm code hence not
exported already. Fix this by adding the prototypes.
[1] https://lore.kernel.org/lkml/20230810141947.1236730-1-arnd@kernel.org
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Diffstat (limited to 'arch/arc/kernel/ctx_sw.c')
-rw-r--r-- | arch/arc/kernel/ctx_sw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/kernel/ctx_sw.c b/arch/arc/kernel/ctx_sw.c index 1a76f2d6f694..bf16f777a0bc 100644 --- a/arch/arc/kernel/ctx_sw.c +++ b/arch/arc/kernel/ctx_sw.c @@ -12,7 +12,7 @@ */ #include <asm/asm-offsets.h> -#include <linux/sched.h> +#include <asm/switch_to.h> #include <linux/sched/debug.h> #define KSP_WORD_OFF ((TASK_THREAD + THREAD_KSP) / 4) |