Skip to content

Commit

Permalink
[PATCH] md: use BUILD_BUG_ON
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Acked-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Oct 11, 2006
1 parent 76fd020 commit 5f6e3c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ int bitmap_create(mddev_t *mddev)
int err;
sector_t start;

BUG_ON(sizeof(bitmap_super_t) != 256);
BUILD_BUG_ON(sizeof(bitmap_super_t) != 256);

if (!file && !mddev->bitmap_offset) /* bitmap disabled, nothing to do */
return 0;
Expand Down

0 comments on commit 5f6e3c8

Please sign in to comment.