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

/linux-master/include/linux/
H A Dcontainer_of.h20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \
21 __same_type(*(ptr), void), \
H A Dhighmem-internal.h270 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
286 BUILD_BUG_ON(__same_type((__addr), struct page *)); \
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 Dcompiler.h237 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
H A Dinit.h266 static_assert(__same_type(initcall_t, &fn));
H A Dcompiler_types.h390 #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
H A Doverflow.h242 * castable_to_type - like __same_type(), but also allows for casted literals
247 * Unlike the __same_type() macro, this allows a constant value as the
250 * back to __same_type().
255 __same_type(n, T))
H A Dstring.h247 BUILD_BUG_ON_MSG(!__same_type(*(a), *(b)), \
H A Dsyscalls.h125 #define __TYPE_AS(t, v) __same_type((__force t)0, v)
/linux-master/scripts/mod/
H A 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-master/tools/include/linux/
H A Dcompiler-gcc.h26 #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
H A Dcompiler.h62 #ifndef __same_type
63 # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) macro
/linux-master/scripts/kconfig/
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-master/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)); \
1019 KUNIT_EXPECT_EQ(test, true, __same_type(t1, __t1h)); \
1020 KUNIT_EXPECT_EQ(test, true, __same_type(t1, __t1l)); \
1021 KUNIT_EXPECT_EQ(test, true, __same_type(__t1h, t1)); \
1022 KUNIT_EXPECT_EQ(test, true, __same_type(__t1l, t1)); \
1023 KUNIT_EXPECT_EQ(test, true, __same_type(t
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_utils.h167 BUILD_BUG_ON_MSG(!__same_type(*(ptr), typeof_member(type, member)) && \
168 !__same_type(*(ptr), void), \
/linux-master/drivers/scsi/ibmvscsi_tgt/
H A Dlibsrp.c384 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0)
385 && !__same_type(srp_cmd->add_data[0], (u8)0));
/linux-master/drivers/vfio/
H A Ddevice_cdev.c64 static_assert(__same_type(arg->out_devid, df->devid));
/linux-master/security/landlock/
H A Dsyscalls.c275 BUILD_BUG_ON(!__same_type(
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_sysfs.c406 static_assert(__same_type(((struct qib_ibport *)0)->rvp.n_##N, u64)); \
/linux-master/kernel/bpf/
H A Dhashtab.c722 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem,
763 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem,
2579 BUILD_BUG_ON(!__same_type(&__htab_map_lookup_elem,
H A Dverifier.c19986 BUILD_BUG_ON(!__same_type(ops->map_lookup_elem,
19988 BUILD_BUG_ON(!__same_type(ops->map_delete_elem,
19990 BUILD_BUG_ON(!__same_type(ops->map_update_elem,
19993 BUILD_BUG_ON(!__same_type(ops->map_push_elem,
19996 BUILD_BUG_ON(!__same_type(ops->map_pop_elem,
19998 BUILD_BUG_ON(!__same_type(ops->map_peek_elem,
20000 BUILD_BUG_ON(!__same_type(ops->map_redirect,
20002 BUILD_BUG_ON(!__same_type(ops->map_for_each_callback,
20007 BUILD_BUG_ON(!__same_type(ops->map_lookup_percpu_elem,
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_display.c4952 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \
4964 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \
4976 BUILD_BUG_ON_MSG(__same_type(current_config->name, bool), \
4988 BUILD_BUG_ON_MSG(!__same_type(current_config->name, bool), \
/linux-master/include/rdma/
H A Dib_verbs.h2283 !__same_type(((struct drv_struct *)NULL)->member, \
3042 BUILD_BUG_ON_ZERO(!__same_type(u32, \
/linux-master/drivers/infiniband/ulp/srpt/
H A Dib_srpt.c988 BUILD_BUG_ON(!__same_type(srp_cmd->add_data[0], (s8)0) &&
989 !__same_type(srp_cmd->add_data[0], (u8)0));
/linux-master/kernel/trace/
H A Dring_buffer.c1044 if (__same_type(*(b), struct ring_buffer_per_cpu)) { \

Completed in 414 milliseconds