riscv: process: Fix no prototype for arch_dup_task_struct
authorNanyong Sun <sunnanyong@huawei.com>
Fri, 5 Mar 2021 11:33:32 +0000 (19:33 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Wed, 10 Mar 2021 04:46:07 +0000 (20:46 -0800)
commit0d7588ab9ef98bad3b52ad0b91291e8258853cc1
tree6122d44e490f1f1bc3801617fd1ce12554bff158
parent288f6775a08913e9cb5f5ae0a43c105b725be0c8
riscv: process: Fix no prototype for arch_dup_task_struct

Fix the following W=1 compilation warning:
arch/riscv/kernel/process.c:114:5: warning: no previous prototype for â€˜arch_dup_task_struct’ [-Wmissing-prototypes]
  114 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
      |     ^~~~~~~~~~~~~~~~~~~~

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/include/asm/processor.h