projects/linux·commit 77d47582

[PATCH] add a proper prototype for setup_arch()

77d47582 · Adrian Bunk <[email protected]> · 2006-03-25 03:07:39 -08:00

This patch adds a proper prototype for setup_arch() in init.h.

This patch is based on a patch by Ben Dooks <[email protected]>.

Signed-off-by: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
77d47582c2345e071df02afaf9191641009287c4
Parents
f348d70a

Changes

2 files changed · +4 −2

FileStatusAddDelContent
include/linux/init.hmodified+4−0View file
init/main.cmodified+0−2View file

include/linux/init.h

View file
diff --git a/include/linux/init.h b/include/linux/init.h
index ff8d8b8..ed0ac7c 100644
--- a/include/linux/init.h
+++ b/include/linux/init.h
@@ -69,6 +69,10 @@ extern initcall_t __security_initcall_start[], __security_initcall_end[];
/* Defined in init/main.c */
extern char saved_command_line[];
+
+/* used by init/main.c */
+extern void setup_arch(char **);
+
#endif
#ifndef MODULE

init/main.c

View file
diff --git a/init/main.c b/init/main.c
index a596cb8..006dcd5 100644
--- a/init/main.c
+++ b/init/main.c
@@ -306,8 +306,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