diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2012-06-14 18:00:59 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-26 19:59:42 -0400 |
commit | 96263d2863ab5dfe101bf4dec74e3508cc5d003d (patch) | |
tree | 6cc641485b9cfabc322f560d68ce65017c97243b /include/linux/init.h | |
parent | c777ad69185de908a0d571abbaec117392b3ad1b (diff) |
init: add comments to keep initcall-names in sync with initcall levels
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>
Diffstat (limited to 'include/linux/init.h')
-rw-r--r-- | include/linux/init.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 6b951095a42f..5e664f671615 100644 --- a/include/linux/init.h +++ b/include/linux/init.h | |||
@@ -191,6 +191,7 @@ extern bool initcall_debug; | |||
191 | * initializes variables that couldn't be statically initialized. | 191 | * initializes variables that couldn't be statically initialized. |
192 | * | 192 | * |
193 | * This only exists for built-in code, not for modules. | 193 | * This only exists for built-in code, not for modules. |
194 | * Keep main.c:initcall_level_names[] in sync. | ||
194 | */ | 195 | */ |
195 | #define pure_initcall(fn) __define_initcall("0",fn,0) | 196 | #define pure_initcall(fn) __define_initcall("0",fn,0) |
196 | 197 | ||
@@ -280,7 +281,7 @@ void __init parse_early_options(char *cmdline); | |||
280 | 281 | ||
281 | #else /* MODULE */ | 282 | #else /* MODULE */ |
282 | 283 | ||
283 | /* Don't use these in modules, but some people do... */ | 284 | /* Don't use these in loadable modules, but some people do... */ |
284 | #define early_initcall(fn) module_init(fn) | 285 | #define early_initcall(fn) module_init(fn) |
285 | #define core_initcall(fn) module_init(fn) | 286 | #define core_initcall(fn) module_init(fn) |
286 | #define postcore_initcall(fn) module_init(fn) | 287 | #define postcore_initcall(fn) module_init(fn) |