summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include
diff options
context:
space:
mode:
authorNanyong Sun <sunnanyong@huawei.com>2021-03-05 12:33:32 +0100
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-03-10 05:46:07 +0100
commit0d7588ab9ef98bad3b52ad0b91291e8258853cc1 (patch)
tree6122d44e490f1f1bc3801617fd1ce12554bff158 /arch/riscv/include
parentriscv: ftrace: Use ftrace_get_regs helper (diff)
downloadlinux-0d7588ab9ef98bad3b52ad0b91291e8258853cc1.tar.xz
linux-0d7588ab9ef98bad3b52ad0b91291e8258853cc1.zip
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>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r--arch/riscv/include/asm/processor.h1
1 files changed, 1 insertions, 0 deletions
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__ */