]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf832391ba7f71413af2371cf0d07c133d50a1943
treef63a252dd55148e41c9af8da48e51ca329fc7dfb
parent5a86f6689143682acbefc308e245488815cfe5d2
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