Commit e4461271 authored by Kevin Winchester's avatar Kevin Winchester Committed by Linus Torvalds

init/main.c: mark do_one_initcall* as __init_or_module

Andrew Morton suggested that the do_one_initcall and do_one_initcall_debug
functions can be marked __init_or_module such that they can be discarded
for the CONFIG_MODULES=N case.
Signed-off-by: default avatarKevin Winchester <kjwinchester@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 22c5c03b
...@@ -721,7 +721,7 @@ core_param(initcall_debug, initcall_debug, bool, 0644); ...@@ -721,7 +721,7 @@ core_param(initcall_debug, initcall_debug, bool, 0644);
static char msgbuf[64]; static char msgbuf[64];
static int do_one_initcall_debug(initcall_t fn) static int __init_or_module do_one_initcall_debug(initcall_t fn)
{ {
ktime_t calltime, delta, rettime; ktime_t calltime, delta, rettime;
unsigned long long duration; unsigned long long duration;
...@@ -739,7 +739,7 @@ static int do_one_initcall_debug(initcall_t fn) ...@@ -739,7 +739,7 @@ static int do_one_initcall_debug(initcall_t fn)
return ret; return ret;
} }
int do_one_initcall(initcall_t fn) int __init_or_module do_one_initcall(initcall_t fn)
{ {
int count = preempt_count(); int count = preempt_count();
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment