Commit 5f6e3c83 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

[PATCH] md: use BUILD_BUG_ON

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Acked-by: default avatarNeil Brown <neilb@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 76fd0209
...@@ -1413,7 +1413,7 @@ int bitmap_create(mddev_t *mddev) ...@@ -1413,7 +1413,7 @@ int bitmap_create(mddev_t *mddev)
int err; int err;
sector_t start; 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 */ if (!file && !mddev->bitmap_offset) /* bitmap disabled, nothing to do */
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment