mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[PATCH] jbd: use BUILD_BUG_ON in journal init
Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Stephen Tweedie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ae6ddcc5f2
commit
2aed348469
1 changed files with 1 additions and 7 deletions
|
|
@ -2047,13 +2047,7 @@ static int __init journal_init(void)
|
|||
{
|
||||
int ret;
|
||||
|
||||
/* Static check for data structure consistency. There's no code
|
||||
* invoked --- we'll just get a linker failure if things aren't right.
|
||||
*/
|
||||
extern void journal_bad_superblock_size(void);
|
||||
if (sizeof(struct journal_superblock_s) != 1024)
|
||||
journal_bad_superblock_size();
|
||||
|
||||
BUILD_BUG_ON(sizeof(struct journal_superblock_s) != 1024);
|
||||
|
||||
ret = journal_init_caches();
|
||||
if (ret != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue