In file included from ../kernel/bpf/arraymap.c: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. 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:6997:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6997 | if (reg->type & MEM_USER) { | ~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:7004:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7004 | if (reg->type & MEM_PERCPU) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:7028:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7028 | !(reg->type & MEM_RCU) && !reg->ref_obj_id) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8256:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8256 | if (arg_type & MEM_UNINIT) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8275:54: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8275 | if (reg->type == CONST_PTR_TO_DYNPTR && !(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8652:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8652 | type & MEM_UNINIT; | ~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8657:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8657 | return type & OBJ_RELEASE; | ~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8717:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8717 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8731:14: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8731 | PTR_TO_MEM | MEM_RINGBUF, | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8733:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8733 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8740:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8740 | PTR_TO_BTF_ID | MEM_ALLOC, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8747:79: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8747 | static const struct bpf_reg_types ringbuf_mem_types = { .types = { PTR_TO_MEM | MEM_RINGBUF } }; | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8752:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8752 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8753:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8753 | PTR_TO_BTF_ID | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8758:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8758 | PTR_TO_BTF_ID | MEM_PERCPU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8759:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8759 | PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8760:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8760 | PTR_TO_BTF_ID | MEM_PERCPU | 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:8834:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8834 | if (arg_type & MEM_RDONLY) | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8836:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8836 | if (arg_type & PTR_MAYBE_NULL) | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8867:18: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8867 | if (!(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../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_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../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_TRUSTED | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8881:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8881 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8882:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8882 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8883:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8883 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8928:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8928 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8929:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8929 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8941:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8941 | case PTR_TO_BTF_ID | MEM_PERCPU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8942:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8942 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8943:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8943 | case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../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_MEM | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9013:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9013 | case PTR_TO_MEM | MEM_RINGBUF: | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9015:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9015 | case PTR_TO_BUF | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../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: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../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 | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9025:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9025 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:9026:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9026 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9027:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9027 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9381:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9381 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9383:21: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9383 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9424:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9424 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9425:16: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9425 | if (arg_type & MEM_FIXED_SIZE) { | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9427:22: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9427 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9431:17: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9431 | if (arg_type & MEM_ALIGNED) | ~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9437:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9437 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9443:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9443 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9799:36: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9799 | bool is_fixed = fn->arg_type[arg] & MEM_FIXED_SIZE; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9842:26: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9842 | !(fn->arg_type[i] & MEM_FIXED_SIZE))) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10062:24: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10062 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10062:56: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10062 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10078:50: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10078 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:11069:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11069:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11069:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11069:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11224:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11224 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:11286:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11286 | regs[BPF_REG_0].type = PTR_TO_MAP_VALUE | ret_flag; | ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11294:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11294 | regs[BPF_REG_0].type = PTR_TO_SOCKET | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11298:45: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11298 | regs[BPF_REG_0].type = PTR_TO_SOCK_COMMON | ret_flag; | ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11302:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11302 | regs[BPF_REG_0].type = PTR_TO_TCP_SOCK | ret_flag; | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11306:37: 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_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11328:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11328 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11332:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11332 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:11340:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11340 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11354:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11354 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:12212:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12212 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12721:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12721 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12726:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12726 | } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12760:25: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12760 | (dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12780:26: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12780 | if (!(dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12807:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12807 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12811:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12811 | 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 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12825:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12825 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12834:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12834 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12857:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12857 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13138:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13138 | 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:13138:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13138 | 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:13323:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13323 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13333:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13333 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13352:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13352 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:13364:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13364 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:13381:39: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13381 | regs[BPF_REG_0].type = PTR_TO_MEM | type_flag; | ~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13455:24: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13455 | if (cur_iter->type & MEM_RCU) /* KF_RCU_PROTECTED */ | ~~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:13915:20: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13915 | if (ptr_reg->type & PTR_MAYBE_NULL) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:18923:31: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 18923 | *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:19389:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19389 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19408:41: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19408 | aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19424:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19424 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:20480:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20480 | case PTR_TO_BTF_ID | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:20487:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20487 | case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:22255:51: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22255 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:22260:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22260 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22267:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22267 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22269:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22269 | if (arg->arg_type & PTR_UNTRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22271:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22271 | 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/arraymap.c: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. 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/arraymap.c: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 + | ~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. 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:6997:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6997 | if (reg->type & MEM_USER) { | ~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:7004:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7004 | if (reg->type & MEM_PERCPU) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:7028:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7028 | !(reg->type & MEM_RCU) && !reg->ref_obj_id) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8256:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8256 | if (arg_type & MEM_UNINIT) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8275:54: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8275 | if (reg->type == CONST_PTR_TO_DYNPTR && !(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8652:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8652 | type & MEM_UNINIT; | ~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8657:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8657 | return type & OBJ_RELEASE; | ~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8717:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8717 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8731:14: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8731 | PTR_TO_MEM | MEM_RINGBUF, | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8733:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8733 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8740:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8740 | PTR_TO_BTF_ID | MEM_ALLOC, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8747:79: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8747 | static const struct bpf_reg_types ringbuf_mem_types = { .types = { PTR_TO_MEM | MEM_RINGBUF } }; | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8752:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8752 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8753:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8753 | PTR_TO_BTF_ID | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8758:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8758 | PTR_TO_BTF_ID | MEM_PERCPU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8759:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8759 | PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8760:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8760 | PTR_TO_BTF_ID | MEM_PERCPU | 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:8834:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8834 | if (arg_type & MEM_RDONLY) | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8836:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8836 | if (arg_type & PTR_MAYBE_NULL) | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8867:18: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8867 | if (!(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../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_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../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_TRUSTED | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8881:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8881 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8882:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8882 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8883:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8883 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8928:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8928 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8929:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8929 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8941:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8941 | case PTR_TO_BTF_ID | MEM_PERCPU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8942:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8942 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8943:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8943 | case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../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_MEM | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9013:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9013 | case PTR_TO_MEM | MEM_RINGBUF: | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9015:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9015 | case PTR_TO_BUF | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../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: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../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 | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9025:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9025 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:9026:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9026 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9027:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9027 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9381:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9381 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9383:21: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9383 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9424:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9424 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9425:16: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9425 | if (arg_type & MEM_FIXED_SIZE) { | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9427:22: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9427 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9431:17: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9431 | if (arg_type & MEM_ALIGNED) | ~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9437:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9437 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9443:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9443 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9799:36: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9799 | bool is_fixed = fn->arg_type[arg] & MEM_FIXED_SIZE; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9842:26: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9842 | !(fn->arg_type[i] & MEM_FIXED_SIZE))) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10062:24: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10062 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10062:56: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10062 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10078:50: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10078 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:11069:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11069:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11069:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11069:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11069 | 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:11224:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11224 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:11286:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11286 | regs[BPF_REG_0].type = PTR_TO_MAP_VALUE | ret_flag; | ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11294:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11294 | regs[BPF_REG_0].type = PTR_TO_SOCKET | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11298:45: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11298 | regs[BPF_REG_0].type = PTR_TO_SOCK_COMMON | ret_flag; | ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11302:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11302 | regs[BPF_REG_0].type = PTR_TO_TCP_SOCK | ret_flag; | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11306:37: 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_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11328:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11328 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11332:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11332 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:11340:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11340 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11354:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11354 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:12212:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12212 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12721:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12721 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12726:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12726 | } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12760:25: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12760 | (dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12780:26: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12780 | if (!(dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12807:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12807 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12811:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12811 | 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 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12825:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12825 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12834:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12834 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12857:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12857 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13138:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13138 | 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:13138:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13138 | 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:13323:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13323 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13333:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13333 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13352:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13352 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:13364:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13364 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:13381:39: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13381 | regs[BPF_REG_0].type = PTR_TO_MEM | type_flag; | ~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13455:24: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13455 | if (cur_iter->type & MEM_RCU) /* KF_RCU_PROTECTED */ | ~~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:13915:20: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13915 | if (ptr_reg->type & PTR_MAYBE_NULL) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:18923:31: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 18923 | *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:19389:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19389 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19408:41: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19408 | aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19424:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19424 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:20480:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20480 | case PTR_TO_BTF_ID | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:20487:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20487 | case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:22255:51: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22255 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:22260:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22260 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22267:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22267 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22269:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22269 | if (arg->arg_type & PTR_UNTRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22271:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22271 | if (arg->arg_type & PTR_TRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 110 warnings generated. vmlinux.o: warning: objtool: .discard.annotate_insn: dodgy linker, sh_entsize != 8