Symbol: BUILD_BUG_ON_ZERO
arch/arc/kernel/unwind.c
44
BUILD_BUG_ON_ZERO(offsetof(struct unwind_frame_info, f) \
drivers/cdx/controller/mcdid.h
44
((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
drivers/cdx/controller/mcdid.h
47
((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2), \
drivers/clk/samsung/clk-pll.h
61
BUILD_BUG_ON_ZERO(PLL_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout)))
drivers/clk/samsung/clk-pll.h
66
BUILD_BUG_ON_ZERO(PLL_FRACO_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout)))
drivers/fwctl/main.c
157
BUILD_BUG_ON_ZERO(sizeof(union fwctl_ucmd_buffer) < \
drivers/gpu/drm/i915/display/intel_display_device.h
217
BUILD_BUG_ON_ZERO((from) < 200) + \
drivers/gpu/drm/i915/gt/intel_gt.h
21
BUILD_BUG_ON_ZERO((from) < IP_VER(2, 0)) + \
drivers/gpu/drm/i915/gt/intel_gt.h
22
BUILD_BUG_ON_ZERO((until) < (from)) + \
drivers/gpu/drm/i915/gt/intel_gt.h
35
BUILD_BUG_ON_ZERO((from) < IP_VER(13, 0)) + \
drivers/gpu/drm/i915/gt/intel_gt.h
36
BUILD_BUG_ON_ZERO((until) < (from)) + \
drivers/gpu/drm/i915/gt/intel_gt.h
57
BUILD_BUG_ON_ZERO((until) <= (from)) + \
drivers/gpu/drm/i915/gt/intel_gt.h
75
BUILD_BUG_ON_ZERO((until) <= (from)) + \
drivers/gpu/drm/i915/gt/intel_lrc.c
54
#define LRI(count, flags) ((flags) << 6 | (count) | BUILD_BUG_ON_ZERO(count >= BIT(6)))
drivers/gpu/drm/i915/gt/intel_lrc.c
56
#define REG(x) (((x) >> 2) | BUILD_BUG_ON_ZERO(x >= 0x200))
drivers/gpu/drm/i915/gt/intel_lrc.c
58
(((x) >> 9) | BIT(7) | BUILD_BUG_ON_ZERO(x >= 0x10000)), \
drivers/gpu/drm/xe/xe_guc.h
22
(BUILD_BUG_ON_ZERO(COUNT_ARGS(ver) < 2 || COUNT_ARGS(ver) > 3) + \
drivers/gpu/drm/xe/xe_guc_hxg_helpers.h
22
#define hxg_sizeof(T) (sizeof(T) / sizeof(u32) + BUILD_BUG_ON_ZERO(sizeof(T) % sizeof(u32)))
drivers/gpu/drm/xe/xe_lrc.c
191
BUILD_BUG_ON_ZERO(count >= BIT(6)))
drivers/gpu/drm/xe/xe_lrc.c
193
#define REG(x) (((x) >> 2) | BUILD_BUG_ON_ZERO(x >= 0x200))
drivers/gpu/drm/xe/xe_lrc.c
195
(((x) >> 9) | BIT(7) | BUILD_BUG_ON_ZERO(x >= 0x10000)), \
drivers/infiniband/core/uverbs_cmd.c
3643
BUILD_BUG_ON_ZERO(offsetof(req, response) != 0) + \
drivers/infiniband/core/uverbs_cmd.c
3644
BUILD_BUG_ON_ZERO(sizeof_field(req, response) != \
drivers/infiniband/core/uverbs_cmd.c
3654
BUILD_BUG_ON_ZERO(offsetof(req, driver_data) != \
drivers/infiniband/core/uverbs_cmd.c
3656
BUILD_BUG_ON_ZERO(offsetof(resp, driver_data) != \
drivers/infiniband/core/uverbs_cmd.c
3662
1 + BUILD_BUG_ON_ZERO(offsetof(req, driver_data) != \
drivers/infiniband/hw/hns/hns_roce_common.h
65
BUILD_BUG_ON_ZERO((field_h) != (field_l))); \
drivers/input/touchscreen/elants_i2c.c
1249
(BUILD_BUG_ON_ZERO(__ELANTS_FIELD_SIZE(_field) > 2) + \
drivers/iommu/iommufd/iommufd_private.h
282
sizeof(*(ptr)) + BUILD_BUG_ON_ZERO( \
drivers/iommu/iommufd/iommufd_private.h
302
sizeof(*(ptr)) + BUILD_BUG_ON_ZERO( \
drivers/iommu/iommufd/main.c
450
BUILD_BUG_ON_ZERO(sizeof(union ucmd_buffer) < \
drivers/iommu/iommufd/main.c
689
BUILD_BUG_ON_ZERO(!__same_type( \
drivers/iommu/iommufd/main.c
691
BUILD_BUG_ON_ZERO(offsetof(_struct, _obj)))
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
223
BUILD_BUG_ON_ZERO(MLX5_ST_SZ_BYTES(fte_match_param) != \
drivers/net/ethernet/mellanox/mlx5/core/fs_core.h
430
(BUILD_BUG_ON_ZERO(FS_FT_RDMA_TRANSPORT_TX != FS_FT_MAX_TYPE))\
drivers/net/ethernet/sfc/falcon/farch_regs.h
2842
(BUILD_BUG_ON_ZERO(FR_AA_RX_DESC_UPD_KER != FR_BZ_RX_DESC_UPD_P0) + \
drivers/net/ethernet/sfc/falcon/farch_regs.h
2849
(BUILD_BUG_ON_ZERO(FR_AA_TX_DESC_UPD_KER != FR_BZ_TX_DESC_UPD_P0) + \
drivers/net/ethernet/sfc/falcon/io.h
238
BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
drivers/net/ethernet/sfc/falcon/io.h
253
BUILD_BUG_ON_ZERO((reg) != 0x400 && \
drivers/net/ethernet/sfc/falcon/io.h
282
reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
drivers/net/ethernet/sfc/io.h
195
BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
drivers/net/ethernet/sfc/io.h
210
BUILD_BUG_ON_ZERO((reg) != 0x180 && \
drivers/net/ethernet/sfc/mcdi.h
203
((_ofst) + BUILD_BUG_ON_ZERO((_ofst) & (_align - 1)))
drivers/net/ethernet/sfc/mcdi.h
220
((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
drivers/net/ethernet/sfc/mcdi.h
223
((void)BUILD_BUG_ON_ZERO(_field ## _LEN != 1), \
drivers/net/ethernet/sfc/mcdi.h
236
((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
drivers/net/ethernet/sfc/mcdi.h
239
((void)BUILD_BUG_ON_ZERO(_field ## _LEN != 2), \
drivers/net/ethernet/sfc/mcdi.h
349
(BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
drivers/net/ethernet/sfc/mcdi.h
353
(BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 4) + \
drivers/net/ethernet/sfc/mcdi.h
361
(BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 8) + \
drivers/net/ethernet/sfc/siena/farch_regs.h
2842
(BUILD_BUG_ON_ZERO(FR_AA_RX_DESC_UPD_KER != FR_BZ_RX_DESC_UPD_P0) + \
drivers/net/ethernet/sfc/siena/farch_regs.h
2849
(BUILD_BUG_ON_ZERO(FR_AA_TX_DESC_UPD_KER != FR_BZ_TX_DESC_UPD_P0) + \
drivers/net/ethernet/sfc/siena/io.h
261
BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
drivers/net/ethernet/sfc/siena/io.h
276
BUILD_BUG_ON_ZERO((reg) != 0x180 && \
drivers/net/ethernet/sfc/siena/io.h
307
reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
drivers/net/ethernet/sfc/siena/mcdi.h
207
((_ofst) + BUILD_BUG_ON_ZERO((_ofst) & (_align - 1)))
drivers/net/ethernet/sfc/siena/mcdi.h
212
((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
drivers/net/ethernet/sfc/siena/mcdi.h
215
((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
drivers/net/ethernet/sfc/siena/mcdi.h
304
(BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
drivers/net/ethernet/sfc/siena/mcdi.h
308
(BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 4) + \
drivers/net/ethernet/sfc/siena/mcdi.h
316
(BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 8) + \
drivers/net/ethernet/sfc/tc_counters.c
401
((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_LBN & 7), \
drivers/net/ethernet/sfc/tc_counters.c
404
((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_WIDTH != 8),\
drivers/net/ethernet/sfc/tc_counters.c
407
((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_WIDTH != 16),\
drivers/net/ethernet/sfc/tc_counters.c
408
(void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_HEADER_##field##_LBN & 15), \
drivers/net/ethernet/sfc/tc_counters.c
411
((void)BUILD_BUG_ON_ZERO(ERF_SC_PACKETISER_PAYLOAD_##field##_LBN & 7), \
drivers/net/wireless/intel/iwlwifi/pcie/drv.c
576
#define _CHECK_MASK(m) BUILD_BUG_ON_ZERO(!_IS_CONTIG(m))
drivers/net/wireless/realtek/rtw89/acpi.h
179
(BUILD_BUG_ON_ZERO(sizeof(struct rtw89_acpi_sar_ ## type) > \
drivers/net/wireless/realtek/rtw89/acpi.h
278
(BUILD_BUG_ON_ZERO(sizeof(struct rtw89_acpi_geo_sar_ ## type) > \
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
38
BUILD_BUG_ON_ZERO((0x##_n) < (0x##_min)) + \
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
39
BUILD_BUG_ON_ZERO((0x##_n) > (0x##_max)) + \
drivers/pinctrl/renesas/sh_pfc.h
130
.field_width = f_width + BUILD_BUG_ON_ZERO(r_width % f_width) + \
drivers/pinctrl/renesas/sh_pfc.h
131
BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \
drivers/pinctrl/renesas/sh_pfc.h
200
BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \
drivers/pinctrl/renesas/sh_pfc.h
54
BUILD_BUG_ON_ZERO(sizeof(_name##_pins) != sizeof(_name##_mux)), \
drivers/pinctrl/renesas/sh_pfc.h
66
BUILD_BUG_ON_ZERO(first + n > ARRAY_SIZE(data##_pins)) + \
drivers/pinctrl/renesas/sh_pfc.h
67
BUILD_BUG_ON_ZERO(first + n > ARRAY_SIZE(data##_mux)), \
drivers/pinctrl/uniphier/pinctrl-uniphier.h
170
BUILD_BUG_ON_ZERO(ARRAY_SIZE(grp##_pins) != \
drivers/tty/serial/8250/8250_dwlib.h
76
BUILD_BUG_ON_ZERO((size) > 2048) + \
drivers/tty/serial/8250/8250_dwlib.h
77
BUILD_BUG_ON_ZERO((size) % 16) + \
include/asm-generic/bitops/const_hweight.h
34
#define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
include/asm-generic/bitops/const_hweight.h
35
#define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
include/asm-generic/bitops/const_hweight.h
36
#define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
include/asm-generic/bitops/const_hweight.h
37
#define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
include/drm/intel/pick.h
40
(BUILD_BUG_ON_ZERO(!__is_constexpr(__c_index)) + \
include/drm/intel/reg_bits.h
128
(BUILD_BUG_ON_ZERO(__builtin_choose_expr(__builtin_constant_p(mask), (mask) & 0xffff0000, 0)) + \
include/drm/intel/reg_bits.h
129
BUILD_BUG_ON_ZERO(__builtin_choose_expr(__builtin_constant_p(value), (value) & 0xffff0000, 0)) + \
include/drm/intel/reg_bits.h
130
BUILD_BUG_ON_ZERO(__builtin_choose_expr(__builtin_constant_p(mask) && __builtin_constant_p(value), (value) & ~(mask), 0)) + \
include/drm/intel/reg_bits.h
41
BUILD_BUG_ON_ZERO(!__is_constexpr(__mask)) + \
include/drm/intel/reg_bits.h
42
BUILD_BUG_ON_ZERO((__mask) == 0 || (__mask) > U8_MAX) + \
include/drm/intel/reg_bits.h
43
BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
include/drm/intel/reg_bits.h
44
BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & (__val)), 0))))
include/drm/intel/reg_bits.h
59
BUILD_BUG_ON_ZERO(!__is_constexpr(__mask)) + \
include/drm/intel/reg_bits.h
60
BUILD_BUG_ON_ZERO((__mask) == 0 || (__mask) > U16_MAX) + \
include/drm/intel/reg_bits.h
61
BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
include/drm/intel/reg_bits.h
62
BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & (__val)), 0))))
include/drm/intel/reg_bits.h
76
BUILD_BUG_ON_ZERO(!__is_constexpr(__mask)) + \
include/drm/intel/reg_bits.h
77
BUILD_BUG_ON_ZERO((__mask) == 0 || (__mask) > U32_MAX) + \
include/drm/intel/reg_bits.h
78
BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
include/drm/intel/reg_bits.h
79
BUILD_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & (__val)), 0))))
include/linux/bitfield.h
141
#define __BF_CHECK_POW2(n) BUILD_BUG_ON_ZERO(((n) & ((n) - 1)) != 0)
include/linux/bitfield.h
158
BUILD_BUG_ON_ZERO((_mask) == 0) + \
include/linux/bitfield.h
160
BUILD_BUG_ON_ZERO(~((_mask) >> __bf_shf(_mask)) & (_val)) + \
include/linux/bits.h
34
#define GENMASK_INPUT_CHECK(h, l) BUILD_BUG_ON_ZERO(const_true((l) > (h)))
include/linux/bits.h
69
BUILD_BUG_ON_ZERO(const_true((nr) >= BITS_PER_TYPE(type)))
include/linux/cdx/mcdi.h
190
((void)BUILD_BUG_ON_ZERO((_ofst) & ((_align) - 1)), \
include/linux/hw_bitfield.h
57
(BUILD_BUG_ON_ZERO(const_true((u64)(_mask) > U16_MAX)) + \
include/linux/iommufd.h
333
BUILD_BUG_ON_ZERO(offsetof(drv_struct, member)) + \
include/linux/iommufd.h
334
BUILD_BUG_ON_ZERO(!__same_type(struct iommufd_viommu, \
include/linux/iommufd.h
339
BUILD_BUG_ON_ZERO(offsetof(drv_struct, member)) + \
include/linux/iommufd.h
340
BUILD_BUG_ON_ZERO(!__same_type(struct iommufd_vdevice, \
include/linux/iommufd.h
345
BUILD_BUG_ON_ZERO(offsetof(drv_struct, member)) + \
include/linux/iommufd.h
346
BUILD_BUG_ON_ZERO(!__same_type(struct iommufd_hw_queue, \
include/linux/kvm_host.h
1969
BUILD_BUG_ON_ZERO(type & ~KVM_STATS_TYPE_MASK) | \
include/linux/kvm_host.h
1970
BUILD_BUG_ON_ZERO(unit & ~KVM_STATS_UNIT_MASK) | \
include/linux/kvm_host.h
1971
BUILD_BUG_ON_ZERO(base & ~KVM_STATS_BASE_MASK), \
include/linux/syscalls.h
135
#define __SC_TEST(t, a) (void)BUILD_BUG_ON_ZERO(!__TYPE_IS_LL(t) && sizeof(t) > sizeof(long))
include/linux/sysfs.h
813
(BUILD_BUG_ON_ZERO((perms) < 0) + \
include/linux/sysfs.h
814
BUILD_BUG_ON_ZERO((perms) > 0777) + \
include/linux/sysfs.h
816
BUILD_BUG_ON_ZERO((((perms) >> 6) & 4) < (((perms) >> 3) & 4)) + \
include/linux/sysfs.h
817
BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) + \
include/linux/sysfs.h
819
BUILD_BUG_ON_ZERO((((perms) >> 6) & 2) < (((perms) >> 3) & 2)) + \
include/linux/sysfs.h
821
BUILD_BUG_ON_ZERO((perms) & 2) + \
include/linux/vdpa.h
475
BUILD_BUG_ON_ZERO(offsetof( \
include/linux/vfio.h
329
BUILD_BUG_ON_ZERO(offsetof( \
include/net/netlink.h
411
#define __NLA_ENSURE(condition) BUILD_BUG_ON_ZERO(!(condition))
include/rdma/ib_verbs.h
2437
BUILD_BUG_ON_ZERO(offsetof(struct drv_struct, member)) + \
include/rdma/ib_verbs.h
2438
BUILD_BUG_ON_ZERO( \
include/rdma/ib_verbs.h
3066
BUILD_BUG_ON_ZERO(offsetof( \
include/rdma/ib_verbs.h
3073
BUILD_BUG_ON_ZERO(offsetof( \
include/rdma/ib_verbs.h
3301
BUILD_BUG_ON_ZERO(!__same_type(u32, \
include/rdma/ibta_vol1_c12.h
36
BUILD_BUG_ON_ZERO((total_len) % 32 != 0)]; \
include/rdma/uverbs_ioctl.h
397
BUILD_BUG_ON_ZERO(sizeof_field(struct ib_device_ops, \
include/rdma/uverbs_ioctl.h
412
BUILD_BUG_ON_ZERO(sizeof_field(struct ib_device_ops, \
include/rdma/uverbs_ioctl.h
490
BUILD_BUG_ON_ZERO((_min_len) == 0 || \
include/rdma/uverbs_ioctl.h
520
BUILD_BUG_ON_ZERO((_access) != UVERBS_ACCESS_NEW && \
include/rdma/uverbs_ioctl.h
561
sizeof(u64) + BUILD_BUG_ON_ZERO(!sizeof(_enum_type)), \
include/rdma/uverbs_ioctl.h
573
UVERBS_ATTR_SIZE(sizeof(u32) + BUILD_BUG_ON_ZERO( \
include/trace/bpf_probe.h
102
(void)BUILD_BUG_ON_ZERO(size != sizeof(*FIRST(args))); \
kernel/liveupdate/luo_core.c
373
BUILD_BUG_ON_ZERO(sizeof(union ucmd_buffer) < \
kernel/liveupdate/luo_session.c
365
BUILD_BUG_ON_ZERO(sizeof(union ucmd_buffer) < \
lib/errname.c
16
#define E(err) [err + BUILD_BUG_ON_ZERO(err <= 0 || err > 300)] = "-" #err
lib/errname.c
177
#define E(err) [err - 512 + BUILD_BUG_ON_ZERO(err < 512 || err > 550)] = "-" #err
net/ipv6/mcast.c
68
BUILD_BUG_ON_ZERO(offsetof(struct mld2_query, mld2q_srcs) % 4),
net/ipv6/mcast.c
69
BUILD_BUG_ON_ZERO(offsetof(struct mld2_report, mld2r_grec) % 4),
net/ipv6/mcast.c
70
BUILD_BUG_ON_ZERO(offsetof(struct mld2_grec, grec_mca) % 4)
tools/include/asm-generic/bitops/const_hweight.h
34
#define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
tools/include/asm-generic/bitops/const_hweight.h
35
#define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
tools/include/asm-generic/bitops/const_hweight.h
36
#define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
tools/include/asm-generic/bitops/const_hweight.h
37
#define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
tools/include/linux/bits.h
34
#define GENMASK_INPUT_CHECK(h, l) BUILD_BUG_ON_ZERO(const_true((l) > (h)))
tools/include/linux/bits.h
69
BUILD_BUG_ON_ZERO(const_true((nr) >= BITS_PER_TYPE(type)))
tools/include/linux/compiler-gcc.h
26
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
tools/lib/subcmd/parse-options.h
116
#define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + v )