MIPS: process: Add prototype for function arch_dup_task_struct
authorPujin Shi <shipujin.t@gmail.com>
Tue, 29 Sep 2020 09:30:46 +0000 (17:30 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 30 Sep 2020 19:52:42 +0000 (21:52 +0200)
This commit adds a prototype to fix warning at W=1:

  arch/mips/kernel/process.c:95:5: error: no previous prototype for 'arch_dup_task_struct' [-Werror=missing-prototypes]

Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/processor.h

index 856e12f..7834e7c 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 extern unsigned int vced_count, vcei_count;
+extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
 
 #ifdef CONFIG_32BIT
 #ifdef CONFIG_KVM_GUEST