[PATCH 7/9] riscv: process: Fix no prototype for show_regs
Nanyong Sun
sunnanyong at huawei.com
Fri Mar 5 11:33:30 GMT 2021
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 at huawei.com>
Signed-off-by: Nanyong Sun <sunnanyong at huawei.com>
---
arch/riscv/kernel/process.c | 1 +
1 file changed, 1 insertion(+)
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>
--
2.25.1
More information about the linux-riscv
mailing list