Home
last modified time | relevance | path

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

12

/linux-6.15/lib/tests/
H A Doverflow_kunit.c344 SKIP_64_ON_32(__same_type(t, u64)); \
345 SKIP_64_ON_32(__same_type(t, s64)); \
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()
1026 KUNIT_EXPECT_EQ(test, same, __same_type(t1, t2)); \ in same_type_test()
1069 KUNIT_EXPECT_TRUE(test, __same_type(var++, int)); in same_type_test()
1071 KUNIT_EXPECT_TRUE(test, __same_type(int, var++)); in same_type_test()
[all …]
/linux-6.15/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 Dfwctl.h100 static_assert(__same_type(struct fwctl_device, \
H A Dcompiler.h201 #define __is_array(a) (!__same_type((a), &(a)[0]))
H A Diommufd.h239 static_assert(__same_type(struct iommufd_viommu, \
H A Doverflow.h255 __same_type(n, T))
H A Dinit.h266 static_assert(__same_type(initcall_t, &fn));
H A Dcompiler_types.h498 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
H A Dstring.h254 BUILD_BUG_ON_MSG(!__same_type(*(a), *(b)), \
H A Dsyscalls.h126 #define __TYPE_AS(t, v) __same_type((__force t)0, v)
/linux-6.15/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-6.15/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-6.15/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-6.15/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-6.15/drivers/vfio/
H A Ddevice_cdev.c71 static_assert(__same_type(arg->out_devid, df->devid)); in vfio_df_ioctl_bind_iommufd()
/linux-6.15/security/landlock/
H A Dsyscalls.c293 BUILD_BUG_ON(!__same_type( in get_path_from_fd()
/linux-6.15/kernel/bpf/
H A Dhashtab.c694 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_map_gen_lookup()
735 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_lru_map_gen_lookup()
2317 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_percpu_map_gen_lookup()
2599 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_of_map_gen_lookup()
H A Dverifier.c22097 BUILD_BUG_ON(!__same_type(ops->map_lookup_elem, in do_misc_fixups()
22099 BUILD_BUG_ON(!__same_type(ops->map_delete_elem, in do_misc_fixups()
22101 BUILD_BUG_ON(!__same_type(ops->map_update_elem, in do_misc_fixups()
22104 BUILD_BUG_ON(!__same_type(ops->map_push_elem, in do_misc_fixups()
22107 BUILD_BUG_ON(!__same_type(ops->map_pop_elem, in do_misc_fixups()
22109 BUILD_BUG_ON(!__same_type(ops->map_peek_elem, in do_misc_fixups()
22111 BUILD_BUG_ON(!__same_type(ops->map_redirect, in do_misc_fixups()
22113 BUILD_BUG_ON(!__same_type(ops->map_for_each_callback, in do_misc_fixups()
22118 BUILD_BUG_ON(!__same_type(ops->map_lookup_percpu_elem, in do_misc_fixups()
/linux-6.15/drivers/infiniband/hw/qib/
H A Dqib_sysfs.c406 static_assert(__same_type(((struct qib_ibport *)0)->rvp.n_##N, u64)); \
/linux-6.15/include/rdma/
H A Dib_verbs.h2303 !__same_type(((struct drv_struct *)NULL)->member, \
3114 BUILD_BUG_ON_ZERO(!__same_type(u32, \
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_display.c4980 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
4992 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
5004 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
5026 BUILD_BUG_ON_MSG(!__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
/linux-6.15/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()

12