On 13/11/2018 08.26, Yi Wang wrote: > We get two 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]
I think you should also remove the "manual" declarations from the .c files that call the function, in this case fork_init() in init/main.c; otherwise there's no guarantee that those translation units actually include the header that contain the proper declaration. arch_release_thread_stack can probably just be removed completely after the recent arch cleanup, since bb9d81264 (arch: remove tile port) no arch seems to implement it. Rasmus