Searched refs:_Static_assert (Results 1 - 24 of 24) sorted by relevance

/linux-master/tools/testing/selftests/kvm/include/
H A Dkvm_util_types.h9 * #defines static_assert() as a direct alias to _Static_assert() (see
14 #define __kvm_static_assert(expr, msg, ...) _Static_assert(expr, msg)
/linux-master/include/linux/
H A Dbuild_bug.h64 * static_assert() is a wrapper for the C11 _Static_assert, with a
78 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
H A Doverflow.h402 _Static_assert(__builtin_constant_p(count), \
/linux-master/tools/include/linux/
H A Dbuild_bug.h64 * static_assert() is a wrapper for the C11 _Static_assert, with a
79 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgv_sriovmsg.h320 _Static_assert(
324 _Static_assert(
328 _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE % 4 == 0,
331 _Static_assert(AMD_SRIOV_MSG_RESERVE_UCODE > AMD_SRIOV_UCODE_ID__MAX,
/linux-master/drivers/hid/bpf/entrypoints/
H A Dentrypoints.lskel.h241 #define _Static_assert static_assert macro
244 #undef _Static_assert macro
/linux-master/drivers/hid/bpf/progs/
H A DMicrosoft__XBox-Elite-2.bpf.c91 _Static_assert(sizeof(rdesc_assign_selection) == sizeof(fixed_rdesc_assign_selection),
93 _Static_assert(sizeof(rdesc_assign_selection) + OFFSET_ASSIGN_SELECTION < ORIGINAL_RDESC_SIZE,
/linux-master/tools/testing/selftests/bpf/
H A Dbpf_experimental.h226 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \
227 _Static_assert(sizeof(LHS) == 8, "Only 8-byte integers are supported\n"); \
228 _Static_assert(__builtin_constant_p(__bpf_assert_signed(LHS)), "internal static assert"); \
229 _Static_assert(__builtin_constant_p((RHS)), "2nd argument must be a constant expression")
284 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \
481 _Static_assert(BEG <= END, "BEG must be <= END"); \
499 _Static_assert(BEG <= END, "BEG must be <= END"); \
/linux-master/kernel/bpf/preload/iterators/
H A Diterators.lskel-big-endian.h412 #define _Static_assert static_assert macro
415 #undef _Static_assert macro
H A Diterators.lskel-little-endian.h428 #define _Static_assert static_assert macro
431 #undef _Static_assert macro
/linux-master/tools/testing/selftests/bpf/progs/
H A Dexceptions_assert.c68 _Static_assert(_Generic((sk->rx_queue_mapping), s32: 1, default: 0), "type match");
95 _Static_assert(_Generic((sk->rx_queue_mapping), s32: 1, default: 0), "type match");
H A Dtest_cls_redirect.c92 _Static_assert(
97 _Static_assert(
269 _Static_assert(sizeof(struct iphdr) == 20, "iphdr must be 20 bytes");
H A Dtest_cls_redirect_dynptr.c86 _Static_assert(
91 _Static_assert(
177 _Static_assert(sizeof(struct iphdr) == 20, "iphdr must be 20 bytes");
H A Dmap_ptr_kern.c11 _Static_assert(MAX_ENTRIES < LOOP_BOUND, "MAX_ENTRIES must be < LOOP_BOUND");
/linux-master/scripts/mod/
H A Dlist.h20 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
H A Dmodpost.h57 _Static_assert(sizeof(x) == 1 || sizeof(x) == 2 || \
/linux-master/tools/lib/bpf/
H A Dhashmap.h54 * type is verified by hashmap_cast_ptr using _Static_assert;
116 _Static_assert((__builtin_constant_p((p)) ? (p) == NULL : 0) || \
H A Dbpf_helpers.h191 _Static_assert(!__builtin_constant_p(!!sym), \
197 _Static_assert(__builtin_has_attribute (*sym, __weak__), \
/linux-master/tools/perf/util/
H A Dhashmap.h54 * type is verified by hashmap_cast_ptr using _Static_assert;
116 _Static_assert((__builtin_constant_p((p)) ? (p) == NULL : 0) || \
H A Dpmu.c1713 _Static_assert(ARRAY_SIZE(terms) == __PARSE_EVENTS__TERM_TYPE_NR - 6,
/linux-master/scripts/kconfig/
H A Dlist.h21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
/linux-master/tools/perf/util/bpf_skel/
H A Daugmented_raw_syscalls.bpf.c152 _Static_assert(is_power_of_2(sizeof(augmented_arg->value)), "sizeof(augmented_arg->value) needs to be a power of two");
190 _Static_assert(is_power_of_2(sizeof(augmented_args->saddr)), "sizeof(augmented_args->saddr) needs to be a power of two");
/linux-master/tools/testing/selftests/kvm/lib/
H A Dtest_util.c283 _Static_assert(ARRAY_SIZE(aliases) == NUM_SRC_TYPES,
H A Dkvm_util.c220 _Static_assert(sizeof(strings)/sizeof(char *) == NUM_VM_MODES,
246 _Static_assert(sizeof(vm_guest_mode_params)/sizeof(struct vm_guest_mode_params) == NUM_VM_MODES,

Completed in 498 milliseconds