powerpc: Add missing prototype for arch_dup_task_struct()
authorMathieu Malaterre <malat@debian.org>
Sun, 25 Feb 2018 17:22:28 +0000 (18:22 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:50:37 +0000 (15:50 +1100)
In commit 55ccf3fe3f9a ("fork: move the real prepare_to_copy() users to
arch_dup_task_struct()") a new arch_dup_task_struct() was added
without a prototype declared in thread_info.h header. Fix the
following warning (treated as error in W=1):

  arch/powerpc/kernel/process.c:1609:5: error: no previous prototype for â€˜arch_dup_task_struct’

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/thread_info.h

index 4a12c00f8de3ec1aa90069d01a9b1de3f3174d00..5964145db03d1be6c4079b4c55bb6c92468d0a63 100644 (file)
@@ -70,6 +70,7 @@ static inline struct thread_info *current_thread_info(void)
        return (struct thread_info *)val;
 }
 
+extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src);
 #endif /* __ASSEMBLY__ */
 
 /*