/linux-master/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_types.h | 9 * #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 D | build_bug.h | 64 * static_assert() is a wrapper for the C11 _Static_assert, with a 78 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
|
H A D | overflow.h | 402 _Static_assert(__builtin_constant_p(count), \
|
/linux-master/tools/include/linux/ |
H A D | build_bug.h | 64 * 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 D | amdgv_sriovmsg.h | 320 _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 D | entrypoints.lskel.h | 241 #define _Static_assert static_assert macro 244 #undef _Static_assert macro
|
/linux-master/drivers/hid/bpf/progs/ |
H A D | Microsoft__XBox-Elite-2.bpf.c | 91 _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 D | bpf_experimental.h | 226 _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 D | iterators.lskel-big-endian.h | 412 #define _Static_assert static_assert macro 415 #undef _Static_assert macro
|
H A D | iterators.lskel-little-endian.h | 428 #define _Static_assert static_assert macro 431 #undef _Static_assert macro
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | exceptions_assert.c | 68 _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 D | test_cls_redirect.c | 92 _Static_assert( 97 _Static_assert( 269 _Static_assert(sizeof(struct iphdr) == 20, "iphdr must be 20 bytes");
|
H A D | test_cls_redirect_dynptr.c | 86 _Static_assert( 91 _Static_assert( 177 _Static_assert(sizeof(struct iphdr) == 20, "iphdr must be 20 bytes");
|
H A D | map_ptr_kern.c | 11 _Static_assert(MAX_ENTRIES < LOOP_BOUND, "MAX_ENTRIES must be < LOOP_BOUND");
|
/linux-master/scripts/mod/ |
H A D | list.h | 20 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
|
H A D | modpost.h | 57 _Static_assert(sizeof(x) == 1 || sizeof(x) == 2 || \
|
/linux-master/tools/lib/bpf/ |
H A D | hashmap.h | 54 * type is verified by hashmap_cast_ptr using _Static_assert; 116 _Static_assert((__builtin_constant_p((p)) ? (p) == NULL : 0) || \
|
H A D | bpf_helpers.h | 191 _Static_assert(!__builtin_constant_p(!!sym), \ 197 _Static_assert(__builtin_has_attribute (*sym, __weak__), \
|
/linux-master/tools/perf/util/ |
H A D | hashmap.h | 54 * type is verified by hashmap_cast_ptr using _Static_assert; 116 _Static_assert((__builtin_constant_p((p)) ? (p) == NULL : 0) || \
|
H A D | pmu.c | 1713 _Static_assert(ARRAY_SIZE(terms) == __PARSE_EVENTS__TERM_TYPE_NR - 6,
|
/linux-master/scripts/kconfig/ |
H A D | list.h | 21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
|
/linux-master/tools/perf/util/bpf_skel/ |
H A D | augmented_raw_syscalls.bpf.c | 152 _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 D | test_util.c | 283 _Static_assert(ARRAY_SIZE(aliases) == NUM_SRC_TYPES,
|
H A D | kvm_util.c | 220 _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,
|