Skip to content

Commit 86b276c

Browse files
sunnanyongpalmer-dabbelt
authored andcommitted
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 <[email protected]> Signed-off-by: Nanyong Sun <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent a6a58ec commit 86b276c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/kernel/process.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <linux/cpu.h>
1111
#include <linux/kernel.h>
1212
#include <linux/sched.h>
13+
#include <linux/sched/debug.h>
1314
#include <linux/sched/task_stack.h>
1415
#include <linux/tick.h>
1516
#include <linux/ptrace.h>

0 commit comments

Comments
 (0)