riscv: process: Fix no prototype for show_regs
authorNanyong Sun <sunnanyong@huawei.com>
Fri, 5 Mar 2021 11:33:30 +0000 (19:33 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 10 Mar 2021 04:46:05 +0000 (20:46 -0800)
commit86b276c1ddedfbcc0be708e73d82ce1fb2298768
treef63a252dd55148e41c9af8da48e51ca329fc7dfb
parenta6a58ecf98c3f6d95123ee3e66ccb6f7672c6e68
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>
arch/riscv/kernel/process.c