Skip to content

Commit 0d7588a

Browse files
sunnanyongpalmer-dabbelt
authored andcommitted
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 <[email protected]> Signed-off-by: Nanyong Sun <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 288f677 commit 0d7588a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/riscv/include/asm/processor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ int riscv_of_processor_hartid(struct device_node *node);
7171
int riscv_of_parent_hartid(struct device_node *node);
7272

7373
extern void riscv_fill_hwcap(void);
74+
extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
7475

7576
#endif /* __ASSEMBLY__ */
7677

0 commit comments

Comments
 (0)