mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 02:04:05 +08:00
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 <lacombar@gmail.com>. Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Arnaud Lacombe <lacombar@gmail.com>
This commit is contained in:
parent
b3ff056908
commit
4470575461
@ -27,6 +27,7 @@
|
|||||||
#include <linux/highmem.h>
|
#include <linux/highmem.h>
|
||||||
#include <linux/hrtimer.h>
|
#include <linux/hrtimer.h>
|
||||||
#include <linux/backing-dev.h>
|
#include <linux/backing-dev.h>
|
||||||
|
#include <linux/bug.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
|
|
||||||
static void __jbd2_journal_temp_unlink_buffer(struct journal_head *jh);
|
static void __jbd2_journal_temp_unlink_buffer(struct journal_head *jh);
|
||||||
@ -1171,8 +1172,7 @@ out_unlock_bh:
|
|||||||
jbd_unlock_bh_state(bh);
|
jbd_unlock_bh_state(bh);
|
||||||
out:
|
out:
|
||||||
JBUFFER_TRACE(jh, "exit");
|
JBUFFER_TRACE(jh, "exit");
|
||||||
if (ret)
|
WARN_ON(ret); /* All errors are bugs, so dump the stack */
|
||||||
__WARN(); /* All errors are bugs, so dump the stack */
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user