summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNanyong Sun <sunnanyong@huawei.com>2021-03-05 12:33:30 +0100
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-03-10 05:46:05 +0100
commit86b276c1ddedfbcc0be708e73d82ce1fb2298768 (patch)
treef63a252dd55148e41c9af8da48e51ca329fc7dfb /arch
parentriscv: syscall_table: Reduce W=1 compilation warnings noise (diff)
downloadlinux-86b276c1ddedfbcc0be708e73d82ce1fb2298768.tar.xz
linux-86b276c1ddedfbcc0be708e73d82ce1fb2298768.zip
riscv: process: Fix no prototype for show_regs
Include header file to fix the following W=1 compilation warning: arch/riscv/kernel/process.c:78:6: warning: no previous prototype for ‘show_regs’ [-Wmissing-prototypes] 78 | void show_regs(struct pt_regs *regs) | ^~~~~~~~~ Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Nanyong Sun <sunnanyong@huawei.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/kernel/process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/kernel/process.c b/arch/riscv/kernel/process.c
index 6f728e731bed..f9cd57c9c67d 100644
--- a/arch/riscv/kernel/process.c
+++ b/arch/riscv/kernel/process.c
@@ -10,6 +10,7 @@
#include <linux/cpu.h>
#include <linux/kernel.h>
#include <linux/sched.h>
+#include <linux/sched/debug.h>
#include <linux/sched/task_stack.h>
#include <linux/tick.h>
#include <linux/ptrace.h>