From: Andrew Morton Date: Sat, 10 Sep 2016 10:36:33 +0000 (+1000) Subject: include/linux/mlx5/device.h: kill BUILD_BUG_ON()s X-Git-Url: http://git.efficios.com/?p=deliverable%2Flinux.git;a=commitdiff_plain;h=2ba51d3ab89928077461421c3bd229c57d5addd0 include/linux/mlx5/device.h: kill BUILD_BUG_ON()s these go splat for me Signed-off-by: Andrew Morton --- diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 77c141797152..37a130eff270 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -93,8 +93,6 @@ __mlx5_mask(typ, fld)) }) #define MLX5_SET64(typ, p, fld, v) do { \ - BUILD_BUG_ON(__mlx5_bit_sz(typ, fld) != 64); \ - BUILD_BUG_ON(__mlx5_bit_off(typ, fld) % 64); \ *((__be64 *)(p) + __mlx5_64_off(typ, fld)) = cpu_to_be64(v); \ } while (0)