]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
init: add comments to keep initcall-names in sync with initcall levels
authorJim Cromie <jim.cromie@gmail.com>
Thu, 14 Jun 2012 22:00:59 +0000 (16:00 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 26 Jul 2012 23:59:42 +0000 (09:29 +0930)
main.c has initcall_level_names[] for parse_args to print in debug messages,
add comments to keep them in sync with initcalls defined in init.h.

Also add "loadable" into comment re not using *_initcall macros in
modules, to disambiguate from kernel/params.c and other builtins.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Acked-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/init.h
init/main.c

index 6b951095a42f606e8d48fa948047bfaaf6771c4f..5e664f671615d9615421ed40444aac1550d36fa2 100644 (file)
@@ -191,6 +191,7 @@ extern bool initcall_debug;
  * initializes variables that couldn't be statically initialized.
  *
  * This only exists for built-in code, not for modules.
+ * Keep main.c:initcall_level_names[] in sync.
  */
 #define pure_initcall(fn)              __define_initcall("0",fn,0)
 
@@ -280,7 +281,7 @@ void __init parse_early_options(char *cmdline);
 
 #else /* MODULE */
 
-/* Don't use these in modules, but some people do... */
+/* Don't use these in loadable modules, but some people do... */
 #define early_initcall(fn)             module_init(fn)
 #define core_initcall(fn)              module_init(fn)
 #define postcore_initcall(fn)          module_init(fn)
index b5cc0a7c4708f167925aa1f974eb356f99de1ebc..7a740870ffe398451359969ee8069b8e6050c521 100644 (file)
@@ -724,6 +724,7 @@ static initcall_t *initcall_levels[] __initdata = {
        __initcall_end,
 };
 
+/* Keep these in sync with initcalls in include/linux/init.h */
 static char *initcall_level_names[] __initdata = {
        "early",
        "core",