Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dcontainer_of.h19 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
20 __same_type(*(ptr), void), \
34 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
35 __same_type(*(ptr), void), \
Dbitops.h72 static_assert(__same_type(arch_##name, generic_##name) && \
73 __same_type(const_##name, generic_##name) && \
74 __same_type(_##name, generic_##name))
Dhighmem-internal.h267 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
283 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
Dsh_intc.h100 #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a)
Dcompiler.h232 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
Dcompiler_types.h298 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
Dinit.h246 static_assert(__same_type(initcall_t, &fn));
Dstring.h141 BUILD_BUG_ON_MSG(!__same_type(*(a), *(b)), \
Dsyscalls.h120 #define __TYPE_AS(t, v) __same_type((__force t)0, v)
/linux-6.1.9/scripts/mod/
Dlist.h9 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
20 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
21 __same_type(*(ptr), void), \
/linux-6.1.9/tools/include/linux/
Dcompiler.h50 #ifndef __same_type
51 # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
Dcompiler-gcc.h24 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
/linux-6.1.9/lib/
Doverflow_kunit.c284 SKIP_64_ON_32(__same_type(t, u64)); \
285 SKIP_64_ON_32(__same_type(t, s64)); \
286 SKIP_SIGN_MISMATCH(__same_type(n ## _tests[0].a, u32) && \
287 __same_type(n ## _tests[0].b, u32) && \
288 __same_type(n ## _tests[0].sum, int)); \
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_utils.h173 BUILD_BUG_ON_MSG(!__same_type(*(ptr), struct_member(type, member)) && \
174 !__same_type(*(ptr), void), \
/linux-6.1.9/drivers/scsi/ibmvscsi_tgt/
Dlibsrp.c384 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) in srp_get_desc_table()
385 && !__same_type(srp_cmd->add_data[0], (u8)0)); in srp_get_desc_table()
/linux-6.1.9/security/landlock/
Dsyscalls.c249 BUILD_BUG_ON(!__same_type( in get_path_from_fd()
/linux-6.1.9/drivers/infiniband/hw/qib/
Dqib_sysfs.c406 static_assert(__same_type(((struct qib_ibport *)0)->rvp.n_##N, u64)); \
/linux-6.1.9/kernel/bpf/
Dhashtab.c703 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_map_gen_lookup()
744 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_lru_map_gen_lookup()
2503 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_of_map_gen_lookup()
Dverifier.c14253 BUILD_BUG_ON(!__same_type(ops->map_lookup_elem, in do_misc_fixups()
14255 BUILD_BUG_ON(!__same_type(ops->map_delete_elem, in do_misc_fixups()
14257 BUILD_BUG_ON(!__same_type(ops->map_update_elem, in do_misc_fixups()
14260 BUILD_BUG_ON(!__same_type(ops->map_push_elem, in do_misc_fixups()
14263 BUILD_BUG_ON(!__same_type(ops->map_pop_elem, in do_misc_fixups()
14265 BUILD_BUG_ON(!__same_type(ops->map_peek_elem, in do_misc_fixups()
14267 BUILD_BUG_ON(!__same_type(ops->map_redirect, in do_misc_fixups()
14269 BUILD_BUG_ON(!__same_type(ops->map_for_each_callback, in do_misc_fixups()
14274 BUILD_BUG_ON(!__same_type(ops->map_lookup_percpu_elem, in do_misc_fixups()
/linux-6.1.9/include/rdma/
Dib_verbs.h2287 !__same_type(((struct drv_struct *)NULL)->member, \
3043 BUILD_BUG_ON_ZERO(!__same_type(u32, \
/linux-6.1.9/drivers/infiniband/ulp/srpt/
Dib_srpt.c979 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) && in srpt_get_desc_buf()
980 !__same_type(srp_cmd->add_data[0], (u8)0)); in srpt_get_desc_buf()
/linux-6.1.9/kernel/trace/
Dring_buffer.c1175 if (__same_type(*(b), struct ring_buffer_per_cpu)) { \