| /linux/include/linux/ |
| H A D | iommufd.h | 334 BUILD_BUG_ON_ZERO(!__same_type(struct iommufd_viommu, \ 340 BUILD_BUG_ON_ZERO(!__same_type(struct iommufd_vdevice, \ 346 BUILD_BUG_ON_ZERO(!__same_type(struct iommufd_hw_queue, \ 357 static_assert(__same_type(struct iommufd_hw_queue, \ 359 static_assert(__same_type(typeof(*dependent), *depended)); \ 369 static_assert(__same_type(struct iommufd_hw_queue, \ 371 static_assert(__same_type(typeof(*dependent), *depended)); \
|
| H A D | container_of.h | 21 static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 22 __same_type(*(ptr), void), \
|
| H A D | bitops.h | 71 static_assert(__same_type(arch_##name, generic_##name) && \ 72 __same_type(const_##name, generic_##name) && \ 73 __same_type(_##name, generic_##name))
|
| H A D | highmem-internal.h | 278 BUILD_BUG_ON(__same_type((__addr), struct page *)); \ 294 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
|
| H A D | cache_coherency.h | 53 static_assert(__same_type(struct cache_coherency_ops_inst, \
|
| H A D | fwctl.h | 100 static_assert(__same_type(struct fwctl_device, \
|
| H A D | compiler.h | 207 #define __is_array(a) (!__same_type((a), &(a)[0]))
|
| H A D | init.h | 261 static_assert(__same_type(initcall_t, &fn));
|
| H A D | compiler_types.h | 617 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
|
| H A D | overflow.h | 319 __same_type(n, T))
|
| H A D | string.h | 254 BUILD_BUG_ON_MSG(!__same_type(*(a), *(b)), \
|
| /linux/lib/tests/ |
| H A D | overflow_kunit.c | 344 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/drivers/gpu/drm/i915/ |
| H A D | i915_ptr_util.h | 61 BUILD_BUG_ON_MSG(!__same_type(*(ptr), typeof_member(type, member)) && \ 62 !__same_type(*(ptr), void), \
|
| /linux/scripts/include/ |
| H A D | list.h | 10 #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 D | compiler.h | 72 #ifndef __same_type 73 # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
|
| H A D | compiler-gcc.h | 26 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
|
| /linux/drivers/scsi/ibmvscsi_tgt/ |
| H A D | libsrp.c | 386 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/drivers/vfio/ |
| H A D | device_cdev.c | 93 static_assert(__same_type(arg->out_devid, df->devid)); in vfio_df_ioctl_bind_iommufd()
|
| /linux/security/landlock/ |
| H A D | syscalls.c | 296 BUILD_BUG_ON(!__same_type( in get_path_from_fd()
|
| /linux/kernel/bpf/ |
| H A D | hashtab.c | 778 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_map_gen_lookup() 819 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_lru_map_gen_lookup() 2415 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_percpu_map_gen_lookup() 2704 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem, in htab_of_map_gen_lookup()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | main.c | 689 BUILD_BUG_ON_ZERO(!__same_type( \
|
| /linux/include/net/libeth/ |
| H A D | xdp.h | 474 static_assert(__same_type(priv, u64)); \
|
| /linux/include/rdma/ |
| H A D | ib_verbs.h | 2346 !__same_type(((struct drv_struct *)NULL)->member, \ 3193 BUILD_BUG_ON_ZERO(!__same_type(u32, \
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_display.c | 5064 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare() 5076 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare() 5088 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \ in intel_pipe_config_compare() 5110 BUILD_BUG_ON_MSG(!__same_type(current_config->name, bool), \ in intel_pipe_config_compare()
|
| /linux/drivers/infiniband/ulp/srpt/ |
| H A D | ib_srpt.c | 1047 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()
|