From: Nanyong Sun Date: Fri, 5 Mar 2021 11:33:32 +0000 (+0800) Subject: riscv: process: Fix no prototype for arch_dup_task_struct X-Git-Tag: howlett/maple/20220722_2~3528^2~7 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5.12.0-rc2-syzkaller-00467-g0d7588ab9ef9;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Nanyong Sun Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/processor.h index 3a240037bde2..021ed64ee608 100644 --- a/arch/riscv/include/asm/processor.h +++ b/arch/riscv/include/asm/processor.h @@ -71,6 +71,7 @@ int riscv_of_processor_hartid(struct device_node *node); int riscv_of_parent_hartid(struct device_node *node); extern void riscv_fill_hwcap(void); +extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); #endif /* __ASSEMBLY__ */