From: Randy Dunlap Date: Thu, 27 Oct 2011 08:05:13 +0000 (-0400) Subject: jbd2: fix build when CONFIG_BUG is not enabled X-Git-Tag: v3.12-rc1~4555^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44705754610dbc63503bc7679ff9d9f84978a76f;p=kernel%2Fkernel-generic.git jbd2: fix build when CONFIG_BUG is not enabled Fix build error when CONFIG_BUG is not enabled: fs/jbd2/transaction.c:1175:3: error: implicit declaration of function '__WARN' by changing __WARN() to WARN_ON(), as suggested by Arnaud Lacombe . Signed-off-by: Randy Dunlap Signed-off-by: "Theodore Ts'o" Cc: Arnd Bergmann Cc: Arnaud Lacombe --- diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index b01fd610..1e5c5ea 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c @@ -27,6 +27,7 @@ #include #include #include +#include #include static void __jbd2_journal_temp_unlink_buffer(struct journal_head *jh); @@ -1171,8 +1172,7 @@ out_unlock_bh: jbd_unlock_bh_state(bh); out: JBUFFER_TRACE(jh, "exit"); - if (ret) - __WARN(); /* All errors are bugs, so dump the stack */ + WARN_ON(ret); /* All errors are bugs, so dump the stack */ return ret; }