]> www.infradead.org Git - users/willy/linux.git/commit
fork: fix some -Wmissing-prototypes warnings
authorYi Wang <wang.yi59@zte.com.cn>
Wed, 5 Dec 2018 00:14:12 +0000 (11:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Dec 2018 22:09:07 +0000 (09:09 +1100)
commit6fa9c378c796ddf747a1688a9ff36b9247a5b215
tree93c5a161b2431b5d4c6e16ea73adf28265ac4a9e
parente0a8b63366f964620a3c64ce9d567cc49917b555
fork: fix some -Wmissing-prototypes warnings

We get a warning when building kernel with W=1:
kernel/fork.c:167:13: warning: no previous prototype for `arch_release_thread_stack' [-Wmissing-prototypes]
kernel/fork.c:779:13: warning: no previous prototype for `fork_init' [-Wmissing-prototypes]

Add the missing declaration in head file to fix this.

Also, remove arch_release_thread_stack() completely because no
arch seems to implement it since bb9d81264 (arch: remove tile port).

Link: http://lkml.kernel.org/r/1542170087-23645-1-git-send-email-wang.yi59@zte.com.cn
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/sched/task.h
init/main.c
kernel/fork.c