In file included from ../kernel/bpf/verifier.c:7: In file included from ../include/linux/bpf-cgroup.h:5: In file included from ../include/linux/bpf.h:21: In file included from ../include/linux/kallsyms.h:13: In file included from ../include/linux/mm.h:2224: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:908:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 908 | if (dreg->type != (PTR_TO_MEM | PTR_MAYBE_NULL) && dreg->type != PTR_TO_MEM) | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:908:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 908 | if (dreg->type != (PTR_TO_MEM | PTR_MAYBE_NULL) && dreg->type != PTR_TO_MEM) | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:1128:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1128 | if (st->type & PTR_UNTRUSTED) | ~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2084:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2084 | regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:2104:14: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2104 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2104:45: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2104 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2637:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2637 | regs[regno].type = PTR_TO_BTF_ID | flag; | ~~~~~~~~~~~~~ ^ ~~~~ ../kernel/bpf/verifier.c:5661:62: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5661 | verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:5761:25: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5761 | reg->type = PTR_TO_MEM | PTR_MAYBE_NULL; | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:6154:19: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6154 | return reg->type & MEM_RCU; | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:6995:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6995 | if (reg->type & MEM_USER) { | ~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:7002:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7002 | if (reg->type & MEM_PERCPU) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:7026:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7026 | !(reg->type & MEM_RCU) && !reg->ref_obj_id) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8253:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8253 | if (arg_type & MEM_UNINIT) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8272:54: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8272 | if (reg->type == CONST_PTR_TO_DYNPTR && !(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8649:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8649 | type & MEM_UNINIT; | ~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8654:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8654 | return type & OBJ_RELEASE; | ~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8714:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8714 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8728:14: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8728 | PTR_TO_MEM | MEM_RINGBUF, | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8730:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8730 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8737:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8737 | PTR_TO_BTF_ID | MEM_ALLOC, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8744:79: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8744 | static const struct bpf_reg_types ringbuf_mem_types = { .types = { PTR_TO_MEM | MEM_RINGBUF } }; | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8749:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8749 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8750:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8750 | PTR_TO_BTF_ID | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8755:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8755 | PTR_TO_BTF_ID | MEM_PERCPU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8756:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8756 | PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8757:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8757 | PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8767:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8767 | PTR_TO_BTF_ID | MEM_ALLOC | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8831:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8831 | if (arg_type & MEM_RDONLY) | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8833:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8833 | if (arg_type & PTR_MAYBE_NULL) | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8864:18: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8864 | if (!(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8876:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8876 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8877:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8877 | case PTR_TO_BTF_ID | PTR_TRUSTED | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8878:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8878 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8879:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8879 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8880:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8880 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8925:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8925 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8926:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8926 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8938:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8938 | case PTR_TO_BTF_ID | MEM_PERCPU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8939:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8939 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8940:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8940 | case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9009:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9009 | case PTR_TO_MEM | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9010:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9010 | case PTR_TO_MEM | MEM_RINGBUF: | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9012:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9012 | case PTR_TO_BUF | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9020:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9020 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9021:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9021 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9022:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9022 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:9023:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9023 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9024:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9024 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9373:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9373 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9375:21: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9375 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9416:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9416 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9417:16: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9417 | if (arg_type & MEM_FIXED_SIZE) { | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9419:22: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9419 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9423:17: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9423 | if (arg_type & MEM_ALIGNED) | ~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9429:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9429 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9435:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9435 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9791:36: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9791 | bool is_fixed = fn->arg_type[arg] & MEM_FIXED_SIZE; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9834:26: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9834 | !(fn->arg_type[i] & MEM_FIXED_SIZE))) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10054:24: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10054 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10054:56: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10054 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10070:50: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10070 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:11056:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11056 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11056:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11056 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11056:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11056 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11056:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11056 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11211:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11211 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:11273:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11273 | regs[BPF_REG_0].type = PTR_TO_MAP_VALUE | ret_flag; | ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11281:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11281 | regs[BPF_REG_0].type = PTR_TO_SOCKET | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11285:45: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11285 | regs[BPF_REG_0].type = PTR_TO_SOCK_COMMON | ret_flag; | ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11289:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11289 | regs[BPF_REG_0].type = PTR_TO_TCP_SOCK | ret_flag; | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11293:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11293 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11315:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11315 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11319:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11319 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:11327:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11327 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11341:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11341 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:12199:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12199 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12708:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12708 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12713:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12713 | } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12747:25: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12747 | (dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12767:26: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12767 | if (!(dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12794:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12794 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12798:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12798 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12808:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12808 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12812:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12812 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12821:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12821 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12844:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12844 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13125:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13125 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:13125:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13125 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:13310:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13310 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13320:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13320 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13339:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13339 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:13351:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13351 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:13368:39: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13368 | regs[BPF_REG_0].type = PTR_TO_MEM | type_flag; | ~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13442:24: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13442 | if (cur_iter->type & MEM_RCU) /* KF_RCU_PROTECTED */ | ~~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:13902:20: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13902 | if (ptr_reg->type & PTR_MAYBE_NULL) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:18910:31: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 18910 | *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:19376:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19376 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19395:41: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19395 | aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19411:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19411 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:20467:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20467 | case PTR_TO_BTF_ID | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:20474:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20474 | case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:22210:51: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22210 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:22215:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22215 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22222:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22222 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22224:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22224 | if (arg->arg_type & PTR_UNTRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22226:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22226 | if (arg->arg_type & PTR_TRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 110 warnings generated. vmlinux.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8 In file included from ../kernel/bpf/verifier.c:7: In file included from ../include/linux/bpf-cgroup.h:5: In file included from ../include/linux/bpf.h:21: In file included from ../include/linux/kallsyms.h:13: In file included from ../include/linux/mm.h:2224: ../include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 505 | item]; | ~~~~ ../include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 512 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion] 524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~ ^ 525 | NR_VM_NUMA_EVENT_ITEMS + | ~~~~~~~~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:908:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 908 | if (dreg->type != (PTR_TO_MEM | PTR_MAYBE_NULL) && dreg->type != PTR_TO_MEM) | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:908:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 908 | if (dreg->type != (PTR_TO_MEM | PTR_MAYBE_NULL) && dreg->type != PTR_TO_MEM) | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:1128:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1128 | if (st->type & PTR_UNTRUSTED) | ~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2084:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2084 | regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:2104:14: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2104 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2104:45: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2104 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2637:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2637 | regs[regno].type = PTR_TO_BTF_ID | flag; | ~~~~~~~~~~~~~ ^ ~~~~ ../kernel/bpf/verifier.c:5661:62: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5661 | verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:5761:25: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5761 | reg->type = PTR_TO_MEM | PTR_MAYBE_NULL; | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:6154:19: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6154 | return reg->type & MEM_RCU; | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:6995:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6995 | if (reg->type & MEM_USER) { | ~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:7002:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7002 | if (reg->type & MEM_PERCPU) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:7026:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7026 | !(reg->type & MEM_RCU) && !reg->ref_obj_id) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8286:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8286 | if (arg_type & MEM_UNINIT) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8305:54: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8305 | if (reg->type == CONST_PTR_TO_DYNPTR && !(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8682:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8682 | type & MEM_UNINIT; | ~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8687:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8687 | return type & OBJ_RELEASE; | ~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8747:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8747 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8761:14: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8761 | PTR_TO_MEM | MEM_RINGBUF, | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8763:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8763 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8770:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8770 | PTR_TO_BTF_ID | MEM_ALLOC, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8777:79: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8777 | static const struct bpf_reg_types ringbuf_mem_types = { .types = { PTR_TO_MEM | MEM_RINGBUF } }; | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8782:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8782 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8783:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8783 | PTR_TO_BTF_ID | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8788:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8788 | PTR_TO_BTF_ID | MEM_PERCPU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8789:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8789 | PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8790:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8790 | PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8800:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8800 | PTR_TO_BTF_ID | MEM_ALLOC | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8864:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8864 | if (arg_type & MEM_RDONLY) | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8866:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8866 | if (arg_type & PTR_MAYBE_NULL) | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8897:18: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8897 | if (!(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8909:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8909 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8910:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8910 | case PTR_TO_BTF_ID | PTR_TRUSTED | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8911:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8911 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8912:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8912 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8913:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8913 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8958:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8958 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8959:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8959 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8971:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8971 | case PTR_TO_BTF_ID | MEM_PERCPU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8972:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8972 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8973:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8973 | case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9042:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9042 | case PTR_TO_MEM | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9043:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9043 | case PTR_TO_MEM | MEM_RINGBUF: | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9045:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9045 | case PTR_TO_BUF | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9053:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9053 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9054:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9054 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9055:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9055 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:9056:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9056 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9057:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9057 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9406:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9406 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9408:21: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9408 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9449:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9449 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9450:16: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9450 | if (arg_type & MEM_FIXED_SIZE) { | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9452:22: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9452 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9456:17: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9456 | if (arg_type & MEM_ALIGNED) | ~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9462:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9462 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9468:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9468 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9824:36: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9824 | bool is_fixed = fn->arg_type[arg] & MEM_FIXED_SIZE; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9867:26: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9867 | !(fn->arg_type[i] & MEM_FIXED_SIZE))) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10087:24: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10087 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10087:56: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10087 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10103:50: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10103 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:11089:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11089 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11089:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11089 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11089:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11089 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11089:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11089 | if (in_rcu && (reg->type & MEM_ALLOC) && (reg->type & MEM_PERCPU)) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../include/linux/bpf_verifier.h:496:75: note: expanded from macro 'bpf_for_each_reg_in_vstate' 496 | bpf_for_each_reg_in_vstate_mask(__vst, __state, __reg, 1 << STACK_SPILL, __expr) | ^~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:11244:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11244 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:11306:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11306 | regs[BPF_REG_0].type = PTR_TO_MAP_VALUE | ret_flag; | ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11314:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11314 | regs[BPF_REG_0].type = PTR_TO_SOCKET | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11318:45: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11318 | regs[BPF_REG_0].type = PTR_TO_SOCK_COMMON | ret_flag; | ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11322:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11322 | regs[BPF_REG_0].type = PTR_TO_TCP_SOCK | ret_flag; | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11326:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11326 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11348:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11348 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11352:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11352 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:11360:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11360 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11374:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11374 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:12232:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12232 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12741:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12741 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12746:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12746 | } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12780:25: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12780 | (dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12800:26: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12800 | if (!(dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12827:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12827 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12831:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12831 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12841:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12841 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12845:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12845 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12854:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12854 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12877:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12877 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13158:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13158 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../include/linux/bpf_verifier.h:484:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 484 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:13158:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13158 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../include/linux/bpf_verifier.h:489:12: note: expanded from macro 'bpf_for_each_reg_in_vstate_mask' 489 | (void)(__expr); \ | ^~~~~~ ../kernel/bpf/verifier.c:13343:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13343 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13353:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13353 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13372:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13372 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:13384:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13384 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:13401:39: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13401 | regs[BPF_REG_0].type = PTR_TO_MEM | type_flag; | ~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13475:24: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13475 | if (cur_iter->type & MEM_RCU) /* KF_RCU_PROTECTED */ | ~~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:13935:20: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13935 | if (ptr_reg->type & PTR_MAYBE_NULL) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:18943:31: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 18943 | *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:19409:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19409 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19428:41: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19428 | aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19444:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19444 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:20500:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20500 | case PTR_TO_BTF_ID | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:20507:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20507 | case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:22243:51: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22243 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:22248:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22248 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22255:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22255 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22257:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22257 | if (arg->arg_type & PTR_UNTRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22259:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22259 | if (arg->arg_type & PTR_TRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 110 warnings generated. vmlinux.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8