/linux/lib/ |
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/include/linux/ |
H A D | container_of.h | 20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 21 __same_type(*(ptr), void), \
|
H A D | bitops.h | 72 static_assert(__same_type(arch_##name, generic_##name) && \ 73 __same_type(const_##name, generic_##name) && \ 74 __same_type(_##name, generic_##name))
|
H A D | highmem-internal.h | 265 BUILD_BUG_ON(__same_type((__addr), struct page *)); \ 281 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
|
H A D | iommufd.h | 213 static_assert(__same_type(struct iommufd_viommu, \
|
H A D | compiler.h | 264 #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(__same_type((a), &(a)[0]), "must be array")
|
H A D | overflow.h | 255 __same_type(n, T))
|
H A D | init.h | 266 static_assert(__same_type(initcall_t, &fn));
|
H A D | compiler_types.h | 483 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
|
H A D | string.h | 253 BUILD_BUG_ON_MSG(!__same_type(*(a), *(b)), \
|
H A D | syscalls.h | 126 #define __TYPE_AS(t, v) __same_type((__force t)0, v)
|
/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/gpu/drm/i915/ |
H A D | i915_utils.h | 149 BUILD_BUG_ON_MSG(!__same_type(*(ptr), typeof_member(type, member)) && \ 150 !__same_type(*(ptr), void), \
|
/linux/drivers/scsi/ibmvscsi_tgt/ |
H A D | libsrp.c | 384 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 D | syscalls.c | 271 BUILD_BUG_ON(!__same_type( in get_path_from_fd()
|
/linux/kernel/bpf/ |
H A D | hashtab.c | 728 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 D | verifier.c | 21192 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 D | ib_verbs.h | 2285 !__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 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()
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display.c | 5337 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 D | ring_buffer.c | 1073 if (__same_type(*(b), struct ring_buffer_per_cpu)) { \
|