mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] fs/*: use BUILD_BUG_ON
Signed-off-by: Alexey Dobriyan <[email protected]> Cc: David Woodhouse <[email protected]> Cc: David Howells <[email protected]> Cc: Mark Fasheh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fbab41ccc4
commit
2ecd05ae68
5 changed files with 16 additions and 25 deletions
|
|
@ -149,12 +149,8 @@ static int minix_fill_super(struct super_block *s, void *data, int silent)
|
|||
return -ENOMEM;
|
||||
s->s_fs_info = sbi;
|
||||
|
||||
/* N.B. These should be compile-time tests.
|
||||
Unfortunately that is impossible. */
|
||||
if (32 != sizeof (struct minix_inode))
|
||||
panic("bad V1 i-node size");
|
||||
if (64 != sizeof(struct minix2_inode))
|
||||
panic("bad V2 i-node size");
|
||||
BUILD_BUG_ON(32 != sizeof (struct minix_inode));
|
||||
BUILD_BUG_ON(64 != sizeof(struct minix2_inode));
|
||||
|
||||
if (!sb_set_blocksize(s, BLOCK_SIZE))
|
||||
goto out_bad_hblock;
|
||||
|
|
|
|||
Loading…
Reference in a new issue