Home
last modified time | relevance | path

Searched refs:BUILD_BUG_ON_ZERO (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v4.19/tools/include/asm-generic/bitops/
Dconst_hweight.h34 #define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
35 #define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
36 #define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
37 #define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
/Linux-v4.19/include/asm-generic/bitops/
Dconst_hweight.h34 #define HWEIGHT8(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight8(w))
35 #define HWEIGHT16(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight16(w))
36 #define HWEIGHT32(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight32(w))
37 #define HWEIGHT64(w) (BUILD_BUG_ON_ZERO(!__builtin_constant_p(w)) + __const_hweight64(w))
/Linux-v4.19/include/linux/
Dbuild_bug.h10 #define BUILD_BUG_ON_ZERO(e) (0) macro
29 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); })) macro
Dcompiler-clang.h44 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
Dkernel.h1025 (BUILD_BUG_ON_ZERO((perms) < 0) + \
1026 BUILD_BUG_ON_ZERO((perms) > 0777) + \
1028 BUILD_BUG_ON_ZERO((((perms) >> 6) & 4) < (((perms) >> 3) & 4)) + \
1029 BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) + \
1031 BUILD_BUG_ON_ZERO((((perms) >> 6) & 2) < (((perms) >> 3) & 2)) + \
1033 BUILD_BUG_ON_ZERO((perms) & 2) + \
Dcompiler-gcc.h75 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
/Linux-v4.19/drivers/net/ethernet/sfc/
Dmcdi.h207 ((_ofst) + BUILD_BUG_ON_ZERO((_ofst) & (_align - 1)))
212 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
215 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
304 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
308 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 4) + \
316 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 8) + \
Dio.h258 BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
273 BUILD_BUG_ON_ZERO((reg) != 0x400 && \
302 reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
Dfarch_regs.h2845 (BUILD_BUG_ON_ZERO(FR_AA_RX_DESC_UPD_KER != FR_BZ_RX_DESC_UPD_P0) + \
2852 (BUILD_BUG_ON_ZERO(FR_AA_TX_DESC_UPD_KER != FR_BZ_TX_DESC_UPD_P0) + \
/Linux-v4.19/tools/include/linux/
Dbug.h9 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) macro
Dcompiler-gcc.h22 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
Dkernel.h39 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) macro
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dio.h243 BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
258 BUILD_BUG_ON_ZERO((reg) != 0x400 && \
287 reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
Dfarch_regs.h2845 (BUILD_BUG_ON_ZERO(FR_AA_RX_DESC_UPD_KER != FR_BZ_RX_DESC_UPD_P0) + \
2852 (BUILD_BUG_ON_ZERO(FR_AA_TX_DESC_UPD_KER != FR_BZ_TX_DESC_UPD_P0) + \
/Linux-v4.19/arch/x86/include/asm/
Dcpufeature.h85 BUILD_BUG_ON_ZERO(NCAPINTS != 19))
108 BUILD_BUG_ON_ZERO(NCAPINTS != 19))
Ddisabled-features.h81 #define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
Drequired-features.h104 #define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
/Linux-v4.19/tools/arch/x86/include/asm/
Ddisabled-features.h81 #define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
Drequired-features.h104 #define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.h168 BUILD_BUG_ON_ZERO(MLX5_ST_SZ_BYTES(fte_match_param) != \
282 (BUILD_BUG_ON_ZERO(FS_FT_SNIFFER_TX != FS_FT_MAX_TYPE))\
/Linux-v4.19/drivers/pinctrl/uniphier/
Dpinctrl-uniphier.h179 BUILD_BUG_ON_ZERO(ARRAY_SIZE(grp##_pins) != \
/Linux-v4.19/drivers/clk/samsung/
Dclk-pll.h47 BUILD_BUG_ON_ZERO(PLL_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout)))
/Linux-v4.19/include/rdma/
Duverbs_ioctl.h337 BUILD_BUG_ON_ZERO((_access) != UVERBS_ACCESS_NEW && \
376 UVERBS_ATTR_SIZE(sizeof(u32) + BUILD_BUG_ON_ZERO( \
/Linux-v4.19/tools/lib/subcmd/
Dparse-options.h117 #define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + …
/Linux-v4.19/net/ipv6/
Dmcast.c69 BUILD_BUG_ON_ZERO(offsetof(struct mld2_query, mld2q_srcs) % 4),
70 BUILD_BUG_ON_ZERO(offsetof(struct mld2_report, mld2r_grec) % 4),
71 BUILD_BUG_ON_ZERO(offsetof(struct mld2_grec, grec_mca) % 4)

12