Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Add missing prototype for arch_dup_task_struct()

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>

authored by

Mathieu Malaterre and committed by
Michael Ellerman
fd70d9f9 848092fa

+1
+1
arch/powerpc/include/asm/thread_info.h
··· 70 70 return (struct thread_info *)val; 71 71 } 72 72 73 + extern int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src); 73 74 #endif /* __ASSEMBLY__ */ 74 75 75 76 /*