From: Adrian Bunk This patch adds a proper prototype for setup_arch() in init.h . This patch is based on a patch by Ben Dooks . Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton --- include/linux/init.h | 4 ++++ init/main.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff -puN include/linux/init.h~add-a-proper-prototype-for-setup_arch include/linux/init.h --- 25/include/linux/init.h~add-a-proper-prototype-for-setup_arch Thu Mar 9 17:04:24 2006 +++ 25-akpm/include/linux/init.h Thu Mar 9 17:04:24 2006 @@ -69,6 +69,10 @@ extern initcall_t __security_initcall_st /* Defined in init/main.c */ extern char saved_command_line[]; + +/* used by init/main.c */ +extern void setup_arch(char **); + #endif #ifndef MODULE diff -puN init/main.c~add-a-proper-prototype-for-setup_arch init/main.c --- 25/init/main.c~add-a-proper-prototype-for-setup_arch Thu Mar 9 17:04:24 2006 +++ 25-akpm/init/main.c Thu Mar 9 17:04:24 2006 @@ -323,8 +323,6 @@ static int __init rdinit_setup(char *str } __setup("rdinit=", rdinit_setup); -extern void setup_arch(char **); - #ifndef CONFIG_SMP #ifdef CONFIG_X86_LOCAL_APIC _