The current global construct breaks on some compilers:
optgroup.c:208: error: expected identifier or '(' before 'do'
optgroup.c:208: error: expected identifier or '(' before 'while'
Reported-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fixes:
96344ff00349 ("optgroup: add check for optgroup bit numbers being within range")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
const struct opt_group *opt_group_cat_from_mask(uint64_t *mask)
{
+ compiletime_assert(__FIO_OPT_G_NR <= 8 * sizeof(uint64_t),
+ "__FIO_OPT_G_NR");
+
return group_from_mask(fio_opt_cat_groups, mask, FIO_OPT_G_INVALID);
}
-
-compiletime_assert(__FIO_OPT_G_NR <= 8 * sizeof(uint64_t), "__FIO_OPT_G_NR");