Home
last modified time | relevance | path

Searched refs:__same_type (Results 1 – 12 of 12) sorted by relevance

/linux/scripts/include/
H A Dlist.h10 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
22 __same_type(*(ptr), void), \
/linux/include/linux/
H A Dcache_coherency.h53 static_assert(__same_type(struct cache_coherency_ops_inst, \
H A Doverflow.h306 * castable_to_type - like __same_type(), but also allows for casted literals
311 * Unlike the __same_type() macro, this allows a constant value as the
314 * back to __same_type().
319 __same_type(n, T))
/linux/tools/include/linux/
H A Dcompiler-gcc.h26 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
/linux/include/cxl/
H A Dcxl.h247 static_assert(__same_type(struct cxl_dev_state, \
/linux/drivers/scsi/ibmvscsi_tgt/
H A Dlibsrp.c386 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) in srp_get_desc_table()
387 && !__same_type(srp_cmd->add_data[0], (u8)0)); in srp_get_desc_table()
/linux/kernel/bpf/
H A Dfixups.c2426 BUILD_BUG_ON(!__same_type(ops->map_lookup_elem, in bpf_do_misc_fixups()
2428 BUILD_BUG_ON(!__same_type(ops->map_delete_elem, in bpf_do_misc_fixups()
2430 BUILD_BUG_ON(!__same_type(ops->map_update_elem, in bpf_do_misc_fixups()
2433 BUILD_BUG_ON(!__same_type(ops->map_push_elem, in bpf_do_misc_fixups()
2436 BUILD_BUG_ON(!__same_type(ops->map_pop_elem, in bpf_do_misc_fixups()
2438 BUILD_BUG_ON(!__same_type(ops->map_peek_elem, in bpf_do_misc_fixups()
2440 BUILD_BUG_ON(!__same_type(ops->map_redirect, in bpf_do_misc_fixups()
2442 BUILD_BUG_ON(!__same_type(ops->map_for_each_callback, in bpf_do_misc_fixups()
2447 BUILD_BUG_ON(!__same_type(ops->map_lookup_percpu_elem, in bpf_do_misc_fixups()
H A Dhashtab.c951 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_map_get_next_key()
953 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem_u32, in htab_map_get_next_key()
955 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem_u64, in htab_map_get_next_key()
1004 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in inc_elem_count()
2645 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in fd_htab_map_alloc_check()
2934 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in rhtab_map_free()
3297 BUILD_BUG_ON(!__same_type(&rhtab_lookup_elem, in __rhtab_map_lookup_and_delete_batch()
/linux/security/landlock/
H A Dsyscalls.c360 BUILD_BUG_ON(!__same_type( in add_rule_path_beneath()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_dp_link_caps.c880 static_assert(__same_type(rates[0], link_caps->rates[0])); in intel_dp_link_caps_update()
/linux/include/net/libeth/
H A Dxdp.h474 static_assert(__same_type(priv, u64)); \
/linux/kernel/trace/
H A Dring_buffer.c1189 if (__same_type(*(b), struct ring_buffer_per_cpu)) { \