projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22c5c03
)
init/main.c: mark do_one_initcall* as __init_or_module
author
Kevin Winchester
<
[email protected]
>
Tue, 10 Aug 2010 00:20:32 +0000
(17:20 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 10 Aug 2010 03:45:06 +0000
(20:45 -0700)
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: Kevin Winchester <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
init/main.c
patch
|
blob
|
history
diff --git
a/init/main.c
b/init/main.c
index dbee132923c5aa35b4093c63259ad6577486e9b8..86cbfd085b0127b986f73b36a7ab6f7221e1fe79 100644
(file)
--- a/
init/main.c
+++ b/
init/main.c
@@
-721,7
+721,7
@@
core_param(initcall_debug, initcall_debug, bool, 0644);
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;
unsigned long long duration;
@@
-739,7
+739,7
@@
static int do_one_initcall_debug(initcall_t fn)
return ret;
}
-int do_one_initcall(initcall_t fn)
+int
__init_or_module
do_one_initcall(initcall_t fn)
{
int count = preempt_count();
int ret;