mirror of https://gitee.com/openkylin/linux.git
[PATCH] md: use BUILD_BUG_ON
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>
This commit is contained in:
parent
76fd020937
commit
5f6e3c8365
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue