Home
last modified time | relevance | path

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

12

/Linux-v5.4/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-v5.4/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-v5.4/include/linux/
Dbuild_bug.h8 #define BUILD_BUG_ON_ZERO(e) (0) macro
16 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:(-!!(e)); })) macro
Dkernel.h1022 (BUILD_BUG_ON_ZERO((perms) < 0) + \
1023 BUILD_BUG_ON_ZERO((perms) > 0777) + \
1025 BUILD_BUG_ON_ZERO((((perms) >> 6) & 4) < (((perms) >> 3) & 4)) + \
1026 BUILD_BUG_ON_ZERO((((perms) >> 3) & 4) < ((perms) & 4)) + \
1028 BUILD_BUG_ON_ZERO((((perms) >> 6) & 2) < (((perms) >> 3) & 2)) + \
1030 BUILD_BUG_ON_ZERO((perms) & 2) + \
Dcompiler.h357 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
/Linux-v5.4/drivers/net/ethernet/sfc/
Dmcdi.h204 ((_ofst) + BUILD_BUG_ON_ZERO((_ofst) & (_align - 1)))
209 ((void)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 1), \
212 ((u16)BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
301 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 2) + \
305 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 4) + \
313 (BUILD_BUG_ON_ZERO(MC_CMD_ ## _field ## _LEN != 8) + \
Dio.h253 BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
268 BUILD_BUG_ON_ZERO((reg) != 0x400 && \
297 reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
/Linux-v5.4/include/rdma/
Duverbs_ioctl.h423 BUILD_BUG_ON_ZERO( \
438 BUILD_BUG_ON_ZERO( \
515 BUILD_BUG_ON_ZERO((_min_len) == 0 || \
545 BUILD_BUG_ON_ZERO((_access) != UVERBS_ACCESS_NEW && \
581 sizeof(u64) + BUILD_BUG_ON_ZERO(!sizeof(_enum_type)), \
593 UVERBS_ATTR_SIZE(sizeof(u32) + BUILD_BUG_ON_ZERO( \
Dib_verbs.h2241 BUILD_BUG_ON_ZERO(offsetof(struct drv_struct, member)) + \
2242 BUILD_BUG_ON_ZERO( \
2723 BUILD_BUG_ON_ZERO(offsetof( \
2941 for (iter = rdma_start_port(device + BUILD_BUG_ON_ZERO(!__same_type( \
/Linux-v5.4/tools/include/linux/
Dbug.h9 #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); })) macro
Dcompiler-gcc.h24 #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-v5.4/drivers/net/ethernet/sfc/falcon/
Dio.h238 BUILD_BUG_ON_ZERO((reg) != 0x830 && (reg) != 0xa10), \
253 BUILD_BUG_ON_ZERO((reg) != 0x400 && \
282 reg + BUILD_BUG_ON_ZERO((reg) != 0x420), \
/Linux-v5.4/arch/x86/include/asm/
Dcpufeature.h92 BUILD_BUG_ON_ZERO(NCAPINTS != 19))
115 BUILD_BUG_ON_ZERO(NCAPINTS != 19))
Ddisabled-features.h87 #define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
Drequired-features.h104 #define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
/Linux-v5.4/tools/arch/x86/include/asm/
Ddisabled-features.h87 #define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
Drequired-features.h104 #define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 19)
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.h188 BUILD_BUG_ON_ZERO(MLX5_ST_SZ_BYTES(fte_match_param) != \
318 (BUILD_BUG_ON_ZERO(FS_FT_RDMA_RX != FS_FT_MAX_TYPE))\
/Linux-v5.4/drivers/pinctrl/uniphier/
Dpinctrl-uniphier.h170 BUILD_BUG_ON_ZERO(ARRAY_SIZE(grp##_pins) != \
/Linux-v5.4/drivers/pinctrl/sh-pfc/
Dsh_pfc.h49 BUILD_BUG_ON_ZERO(sizeof(n##_pins) != sizeof(n##_mux)), \
143 .field_width = f_width + BUILD_BUG_ON_ZERO(r_width % f_width) + \
144 BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \
213 BUILD_BUG_ON_ZERO(sizeof((const u16 []) { ids }) / sizeof(u16) != \
/Linux-v5.4/drivers/clk/samsung/
Dclk-pll.h44 BUILD_BUG_ON_ZERO(PLL_RATE(_fin, _m, _p, _s, _k, _ks) != (_fout)))
/Linux-v5.4/include/trace/
Dbpf_probe.h97 (void)BUILD_BUG_ON_ZERO(size != sizeof(*FIRST(args))); \
/Linux-v5.4/tools/lib/subcmd/
Dparse-options.h118 #define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + …
/Linux-v5.4/drivers/gpu/drm/i915/
Di915_drv.h1846 BUILD_BUG_ON_ZERO(!__builtin_constant_p(s)) + \
1847 BUILD_BUG_ON_ZERO(!__builtin_constant_p(e)) + \
1855 (BUILD_BUG_ON_ZERO(!__builtin_constant_p(n)) + \

12