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).
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -39,6 +39,8 @@ void __noreturn do_task_dead(void); · 38 unmodified lines | |||
| 39 | 39 | ||
| 40 | extern void proc_caches_init(void); | 40 | extern void proc_caches_init(void); |
| 41 | 41 | ||
| 42 | extern void fork_init(void); | ||
| 43 | |||
| 42 | extern void release_task(struct task_struct * p); | 44 | extern void release_task(struct task_struct * p); |
| 43 | 45 | ||
| 44 | #ifdef CONFIG_HAVE_COPY_THREAD_TLS | 46 | #ifdef CONFIG_HAVE_COPY_THREAD_TLS |