Home
last modified time | relevance | path

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

/linux/lib/
H A Doverflow_kunit.c344 SKIP_64_ON_32(__same_type(t, u64)); \
345 SKIP_64_ON_32(__same_type(t, s64)); \
346 SKIP_SIGN_MISMATCH(__same_type(n ## _tests[0].a, u32) && \
347 __same_type(n ## _tests[0].b, u32) && \
348 __same_type(n ## _tests[0].sum, int)); \
1018 KUNIT_EXPECT_EQ(test, true, __same_type(t1, __t1h)); \ in same_type_test()
1019 KUNIT_EXPECT_EQ(test, true, __same_type(t1, __t1l)); \ in same_type_test()
1020 KUNIT_EXPECT_EQ(test, true, __same_type(__t1h, t1)); \ in same_type_test()
1021 KUNIT_EXPECT_EQ(test, true, __same_type(__t1l, t1)); \ in same_type_test()
1022 KUNIT_EXPECT_EQ(test, true, __same_type(t2, __t2h)); \ in same_type_test()
[all …]
/linux/include/linux/
H A Dcontainer_of.h20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
21 __same_type(*(ptr), void), \
H A Dbitops.h72 static_assert(__same_type(arch_##name, generic_##name) && \
73 __same_type(const_##name, generic_##name) && \
74 __same_type(_##name, generic_##name))
H A Dhighmem-internal.h265 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
281 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
H A Diommufd.h213 static_assert(__same_type(struct iommufd_viommu, \
H A Dcompiler.h264 #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(__same_type((a), &(a)[0]), "must be array")
H A Doverflow.h255 __same_type(n, T))
H A Dinit.h266 static_assert(__same_type(initcall_t, &fn));
H A Dcompiler_types.h483 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
H A Dstring.h253 BUILD_BUG_ON_MSG(!__same_type(*(a), *(b)), \
H A Dsyscalls.h126 #define __TYPE_AS(t, v) __same_type((__force t)0, v)
/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/tools/include/linux/
H A Dcompiler.h72 #ifndef __same_type
73 # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
H A Dcompiler-gcc.h26 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
/linux/drivers/gpu/drm/i915/
H A Di915_utils.h149 BUILD_BUG_ON_MSG(!__same_type(*(ptr), typeof_member(type, member)) && \
150 !__same_type(*(ptr), void), \
/linux/drivers/scsi/ibmvscsi_tgt/
H A 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/security/landlock/
H A Dsyscalls.c271 BUILD_BUG_ON(!__same_type( in get_path_from_fd()
/linux/kernel/bpf/
H A Dhashtab.c728 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_map_gen_lookup()
769 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_lru_map_gen_lookup()
2353 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_percpu_map_gen_lookup()
2635 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_of_map_gen_lookup()
H A Dverifier.c21192 BUILD_BUG_ON(!__same_type(ops->map_lookup_elem, in do_misc_fixups()
21194 BUILD_BUG_ON(!__same_type(ops->map_delete_elem, in do_misc_fixups()
21196 BUILD_BUG_ON(!__same_type(ops->map_update_elem, in do_misc_fixups()
21199 BUILD_BUG_ON(!__same_type(ops->map_push_elem, in do_misc_fixups()
21202 BUILD_BUG_ON(!__same_type(ops->map_pop_elem, in do_misc_fixups()
21204 BUILD_BUG_ON(!__same_type(ops->map_peek_elem, in do_misc_fixups()
21206 BUILD_BUG_ON(!__same_type(ops->map_redirect, in do_misc_fixups()
21208 BUILD_BUG_ON(!__same_type(ops->map_for_each_callback, in do_misc_fixups()
21213 BUILD_BUG_ON(!__same_type(ops->map_lookup_percpu_elem, in do_misc_fixups()
/linux/include/rdma/
H A Dib_verbs.h2285 !__same_type(((struct drv_struct *)NULL)->member, \
3081 BUILD_BUG_ON_ZERO(!__same_type(u32, \ in rdma_end_port()
/linux/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c1047 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) && in srpt_get_desc_buf()
1048 !__same_type(srp_cmd->add_data[0], (u8)0)); in srpt_get_desc_buf()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_display.c5337 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
5349 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
5361 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
5383 BUILD_BUG_ON_MSG(!__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
/linux/kernel/trace/
H A Dring_buffer.c1073 if (__same_type(*(b), struct ring_buffer_per_cpu)) { \