diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-10-11 04:22:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:23 -0400 |
commit | 2ecd05ae68a903761e736e9e0aca40d6ace4319e (patch) | |
tree | 4bb0a178362e954191a6e6cee351745cd2dbe685 /fs/jffs2 | |
parent | fbab41ccc479b6b0ba15c137af9e0b1c100bff24 (diff) |
[PATCH] fs/*: use BUILD_BUG_ON
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Mark Fasheh <mark.fasheh@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/jffs2')
-rw-r--r-- | fs/jffs2/super.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index 6de374513c01..bc4b8106a490 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c | |||
@@ -334,10 +334,10 @@ static int __init init_jffs2_fs(void) | |||
334 | which means just 'no padding', without the alignment | 334 | which means just 'no padding', without the alignment |
335 | thing. But GCC doesn't have that -- we have to just | 335 | thing. But GCC doesn't have that -- we have to just |
336 | hope the structs are the right sizes, instead. */ | 336 | hope the structs are the right sizes, instead. */ |
337 | BUG_ON(sizeof(struct jffs2_unknown_node) != 12); | 337 | BUILD_BUG_ON(sizeof(struct jffs2_unknown_node) != 12); |
338 | BUG_ON(sizeof(struct jffs2_raw_dirent) != 40); | 338 | BUILD_BUG_ON(sizeof(struct jffs2_raw_dirent) != 40); |
339 | BUG_ON(sizeof(struct jffs2_raw_inode) != 68); | 339 | BUILD_BUG_ON(sizeof(struct jffs2_raw_inode) != 68); |
340 | BUG_ON(sizeof(struct jffs2_raw_summary) != 32); | 340 | BUILD_BUG_ON(sizeof(struct jffs2_raw_summary) != 32); |
341 | 341 | ||
342 | printk(KERN_INFO "JFFS2 version 2.2." | 342 | printk(KERN_INFO "JFFS2 version 2.2." |
343 | #ifdef CONFIG_JFFS2_FS_WRITEBUFFER | 343 | #ifdef CONFIG_JFFS2_FS_WRITEBUFFER |