History

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).

Yi Wang committed 7 years ago

Commit fb5bf311 parent 306790f3 files · +2 −6Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/sched/task.h+2−0
@@ -39,6 +39,8 @@ void __noreturn do_task_dead(void); · 38 unmodified lines
3939
4040 extern void proc_caches_init(void);
4141
42+extern void fork_init(void);
43+
4244 extern void release_task(struct task_struct * p);
4345
4446 #ifdef CONFIG_HAVE_COPY_THREAD_TLS