Commit f3a19cb4 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] silence initcall warnings

Suppress the initcall-return-value warnings unless initcall_debug was
specified.

They do find bugs, but they're extremely small ones and as Andi points out,
people get distressed.

Cc: Andi Kleen <ak@muc.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 42e4c858
...@@ -582,7 +582,7 @@ static void __init do_initcalls(void) ...@@ -582,7 +582,7 @@ static void __init do_initcalls(void)
result = (*call)(); result = (*call)();
if (result && (result != -ENODEV || initcall_debug)) { if (result && result != -ENODEV && initcall_debug) {
sprintf(msgbuf, "error code %d", result); sprintf(msgbuf, "error code %d", result);
msg = msgbuf; msg = msgbuf;
} }
......
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