aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorNanyong Sun <sunnanyong@huawei.com>2021-03-05 19:33:30 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-03-09 20:46:05 -0800
commit86b276c1ddedfbcc0be708e73d82ce1fb2298768 (patch)
treef63a252dd55148e41c9af8da48e51ca329fc7dfb /arch/riscv
parentriscv: syscall_table: Reduce W=1 compilation warnings noise (diff)
downloadlinux-dev-86b276c1ddedfbcc0be708e73d82ce1fb2298768.tar.xz
linux-dev-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/riscv')
-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>