| /linux/scripts/gendwarfksyms/examples/ |
| H A D | kabi_ex.h | 193 _Static_assert(sizeof(struct ex2a) == sizeof(struct ex2b), "ex2a size doesn't match ex2b"); 213 _Static_assert(sizeof(struct ex2a) == sizeof(struct ex2c), "ex2a size doesn't match ex2c"); 246 _Static_assert(sizeof(struct ex3a) == sizeof(struct ex3b), "ex3a size doesn't match ex3b"); 260 _Static_assert(sizeof(struct ex3a) == sizeof(struct ex3c), "ex3a size doesn't match ex3c");
|
| H A D | kabi.h | 51 _Static_assert( \ 55 _Static_assert( \
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_experimental.h | 252 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \ 253 _Static_assert(sizeof(LHS) == 8, "Only 8-byte integers are supported\n"); \ 254 _Static_assert(__builtin_constant_p(__bpf_assert_signed(LHS)), "internal static assert"); \ 255 _Static_assert(__builtin_constant_p((RHS)), "2nd argument must be a constant expression") 310 _Static_assert(sizeof(&(LHS)), "1st argument must be an lvalue expression"); \ 538 _Static_assert(BEG <= END, "BEG must be <= END"); \ 556 _Static_assert(BEG <= END, "BEG must be <= END"); \
|
| /linux/drivers/hid/bpf/progs/ |
| H A D | Microsoft__Xbox-Elite-2.bpf.c | 90 _Static_assert(sizeof(rdesc_assign_selection) == sizeof(fixed_rdesc_assign_selection), 92 _Static_assert(sizeof(rdesc_assign_selection) + OFFSET_ASSIGN_SELECTION < ORIGINAL_RDESC_SIZE,
|
| /linux/kernel/bpf/preload/iterators/ |
| H A D | iterators.lskel-little-endian.h | 428 #define _Static_assert static_assert in iterators_bpf__assert() macro 431 #undef _Static_assert in iterators_bpf__assert()
|
| H A D | iterators.lskel-big-endian.h | 430 #define _Static_assert static_assert in iterators_bpf__assert() macro 433 #undef _Static_assert in iterators_bpf__assert()
|
| /linux/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"); in check_assert_range_s64() 95 _Static_assert(_Generic((sk->rx_queue_mapping), s32: 1, default: 0), "type match"); in check_assert_single_range_s64()
|
| H A D | res_spin_lock.c | 92 _Static_assert(ARRAY_SIZE(((struct rqspinlock_held){}).locks) == 31, in res_spin_lock_test_held_lock_max()
|
| H A D | test_cls_redirect.c | 90 _Static_assert( 95 _Static_assert( 267 _Static_assert(sizeof(struct iphdr) == 20, "iphdr must be 20 bytes"); in pkt_ipv4_checksum()
|
| 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"); in pkt_ipv4_checksum()
|
| H A D | irq.c | 369 _Static_assert(sizeof(it) == sizeof(unsigned long), "broken iterator size"); in irq_save_iter()
|
| /linux/arch/x86/include/uapi/asm/ |
| H A D | elf.h | 14 _Static_assert(sizeof(struct x86_xfeat_component) % 4 == 0, "x86_xfeat_component is not aligned");
|
| /linux/tools/testing/selftests/kvm/include/ |
| H A D | kvm_util_types.h | 14 #define __kvm_static_assert(expr, msg, ...) _Static_assert(expr, msg)
|
| /linux/tools/include/linux/ |
| H A D | build_bug.h | 79 #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
|
| /linux/lib/tests/ |
| H A D | longest_symbol_kunit.c | 33 _Static_assert(sizeof(__stringify(LONGEST_SYM_NAME)) == KSYM_NAME_LEN,
|
| /linux/tools/perf/util/ |
| H A D | thread.c | 461 _Static_assert(offsetof(Elf32_Ehdr, e_machine) == 18, "Unexpected offset"); in read_proc_e_machine_for_pid() 462 _Static_assert(offsetof(Elf64_Ehdr, e_machine) == 18, "Unexpected offset"); in read_proc_e_machine_for_pid() 474 _Static_assert(0 == EM_NONE, "Unexpected EM_NONE"); in thread__e_machine_callback()
|
| /linux/tools/lib/bpf/ |
| H A D | bpf_helpers.h | 200 _Static_assert(!__builtin_constant_p(!!sym), \ 206 _Static_assert(__builtin_has_attribute (*sym, __weak__), \
|
| /linux/include/linux/ |
| H A D | compiler.h | 201 #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);}))
|
| H A D | overflow.h | 484 _Static_assert(__builtin_constant_p(count), \
|
| /linux/tools/perf/util/bpf_skel/ |
| H A D | augmented_raw_syscalls.bpf.c | 179 …_Static_assert(is_power_of_2(sizeof(augmented_arg->value)), "sizeof(augmented_arg->value) needs to… in augmented_arg__read_str() 217 …_Static_assert(is_power_of_2(sizeof(augmented_args->arg.saddr)), "sizeof(augmented_args->arg.saddr… in sys_enter_connect()
|
| H A D | sample_filter.bpf.c | 83 _Static_assert((1 << (PBF_TERM_##x - PBF_TERM_SAMPLE_START)) == PERF_SAMPLE_##x, \ in perf_get_sample()
|
| /linux/scripts/include/ |
| H A D | list.h | 21 _Static_assert(__same_type(*(ptr), ((type *)0)->member) || \
|
| /linux/tools/sched_ext/include/scx/ |
| H A D | common.bpf.h | 57 _Static_assert(SCX_DSQ_FLAG_BUILTIN, in ___vmlinux_h_sanity_check___() 249 _Static_assert(sizeof(base) >= sizeof((base) member), \
|
| /linux/tools/testing/selftests/ublk/ |
| H A D | kublk.h | 226 _Static_assert(UBLK_MAX_QUEUES_SHIFT <= 7); in build_user_data()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | test_util.c | 310 _Static_assert(ARRAY_SIZE(aliases) == NUM_SRC_TYPES, in vm_mem_backing_src_alias()
|