Home
last modified time | relevance | path

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

/linux-6.6.21/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)); \
961 KUNIT_EXPECT_EQ(test, true, __same_type(t1, __t1h)); \ in same_type_test()
962 KUNIT_EXPECT_EQ(test, true, __same_type(t1, __t1l)); \ in same_type_test()
963 KUNIT_EXPECT_EQ(test, true, __same_type(__t1h, t1)); \ in same_type_test()
964 KUNIT_EXPECT_EQ(test, true, __same_type(__t1l, t1)); \ in same_type_test()
965 KUNIT_EXPECT_EQ(test, true, __same_type(t2, __t2h)); \ in same_type_test()
[all …]
/linux-6.6.21/include/linux/
Dcontainer_of.h20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
21 __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.h270 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
286 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
Dcompiler.h231 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
Doverflow.h176 __same_type(n, T))
Dcompiler_types.h373 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
Dinit.h263 static_assert(__same_type(initcall_t, &fn));
Dstring.h181 BUILD_BUG_ON_MSG(!__same_type(*(a), *(b)), \
Dsyscalls.h122 #define __TYPE_AS(t, v) __same_type((__force t)0, v)
/linux-6.6.21/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.6.21/tools/include/linux/
Dcompiler.h62 #ifndef __same_type
63 # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
Dcompiler-gcc.h26 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_utils.h167 BUILD_BUG_ON_MSG(!__same_type(*(ptr), typeof_member(type, member)) && \
168 !__same_type(*(ptr), void), \
/linux-6.6.21/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.6.21/drivers/vfio/
Ddevice_cdev.c64 static_assert(__same_type(arg->out_devid, df->devid)); in vfio_df_ioctl_bind_iommufd()
/linux-6.6.21/security/landlock/
Dsyscalls.c249 BUILD_BUG_ON(!__same_type( in get_path_from_fd()
/linux-6.6.21/drivers/infiniband/hw/qib/
Dqib_sysfs.c406 static_assert(__same_type(((struct qib_ibport *)0)->rvp.n_##N, u64)); \
/linux-6.6.21/kernel/bpf/
Dhashtab.c717 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_map_gen_lookup()
758 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_lru_map_gen_lookup()
2568 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_of_map_gen_lookup()
Dverifier.c19176 BUILD_BUG_ON(!__same_type(ops->map_lookup_elem, in do_misc_fixups()
19178 BUILD_BUG_ON(!__same_type(ops->map_delete_elem, in do_misc_fixups()
19180 BUILD_BUG_ON(!__same_type(ops->map_update_elem, in do_misc_fixups()
19183 BUILD_BUG_ON(!__same_type(ops->map_push_elem, in do_misc_fixups()
19186 BUILD_BUG_ON(!__same_type(ops->map_pop_elem, in do_misc_fixups()
19188 BUILD_BUG_ON(!__same_type(ops->map_peek_elem, in do_misc_fixups()
19190 BUILD_BUG_ON(!__same_type(ops->map_redirect, in do_misc_fixups()
19192 BUILD_BUG_ON(!__same_type(ops->map_for_each_callback, in do_misc_fixups()
19197 BUILD_BUG_ON(!__same_type(ops->map_lookup_percpu_elem, in do_misc_fixups()
/linux-6.6.21/include/rdma/
Dib_verbs.h2298 !__same_type(((struct drv_struct *)NULL)->member, \
3055 BUILD_BUG_ON_ZERO(!__same_type(u32, \
/linux-6.6.21/drivers/infiniband/ulp/srpt/
Dib_srpt.c988 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) && in srpt_get_desc_buf()
989 !__same_type(srp_cmd->add_data[0], (u8)0)); in srpt_get_desc_buf()
/linux-6.6.21/kernel/trace/
Dring_buffer.c1140 if (__same_type(*(b), struct ring_buffer_per_cpu)) { \