Skip to content

Commit

Permalink
[PATCH] silence initcall warnings
Browse files Browse the repository at this point in the history
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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 2, 2006
1 parent 42e4c85 commit f3a19cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ static void __init do_initcalls(void)

result = (*call)();

if (result && (result != -ENODEV || initcall_debug)) {
if (result && result != -ENODEV && initcall_debug) {
sprintf(msgbuf, "error code %d", result);
msg = msgbuf;
}
Expand Down

0 comments on commit f3a19cb

Please sign in to comment.