In file included from ../security/bpf/hooks.c:6: In file included from ../include/linux/lsm_hooks.h:29: In file included from ../include/linux/security.h:33: In file included from ../include/linux/mm.h:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../fs/bpf_fs_kfuncs.c:4: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../net/core/filter.c:21: In file included from ../include/linux/bpf_verifier.h:7: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:1726:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1726 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:2041:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2041 | .arg1_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:2043:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2043 | .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:2580:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2580 | .arg2_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:4641:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4641 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:4655:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4655 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:4855:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4855 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:4883:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4883 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5055:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5055 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5069:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5069 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5118:45: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5118 | .arg1_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON | PTR_MAYBE_NULL, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:5553:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5553 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5587:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5587 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5621:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5621 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5655:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5655 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5830:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5830 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6367:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6367 | .arg3_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../net/core/filter.c:6379:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6379 | .arg3_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../net/core/filter.c:6465:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6465 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6475:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6475 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6852:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6852 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6871:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6871 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6890:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6890 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6914:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6914 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6938:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6938 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6962:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6962 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6979:45: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6979 | .arg1_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON | OBJ_RELEASE, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../net/core/filter.c:7000:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7000 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7024:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7024 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7048:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7048 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7068:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7068 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7087:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7087 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7106:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7106 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7424:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7424 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7426:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7426 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7493:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7493 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7495:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7495 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7724:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7724 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:12075:1: error: invalid storage class specifier in function declarator 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../include/linux/btf_ids.h:235:32: note: expanded from macro 'BTF_KFUNCS_START' 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^ ../net/core/filter.c:12075:18: error: parameter named 'bpf_kfunc_check_set_xdp' is missing 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../net/core/filter.c:12075:1: error: expected ';' at end of declaration 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../include/linux/btf_ids.h:235:78: note: expanded from macro 'BTF_KFUNCS_START' 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^ ../net/core/filter.c:12071:25: error: parameter 'bpf_kfunc_check_hidden_set_skb' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ ../net/core/filter.c:12071:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ | int ../net/core/filter.c:12075:1: error: expected expression 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../include/linux/btf_ids.h:235:82: note: expanded from macro 'BTF_KFUNCS_START' 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^ ../net/core/filter.c:12071:1: warning: no previous prototype for function 'BTF_HIDDEN_KFUNCS_START' [-Wmissing-prototypes] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ ../net/core/filter.c:12071:24: note: declare 'static' if the function is not intended to be used outside of this translation unit 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ | static ../net/core/filter.c:12071:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Werror,-Wdeprecated-non-prototype] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ ../net/core/filter.c:12125:17: error: use of undeclared identifier 'bpf_kfunc_check_hidden_set_skb'; did you mean 'bpf_kfunc_check_set_skb'? 12125 | .hidden_set = &bpf_kfunc_check_hidden_set_skb, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | bpf_kfunc_check_set_skb ../net/core/filter.c:12067:18: note: 'bpf_kfunc_check_set_skb' declared here 12067 | BTF_KFUNCS_START(bpf_kfunc_check_set_skb) | ^ ../net/core/filter.c:12131:10: error: use of undeclared identifier 'bpf_kfunc_check_set_xdp'; did you mean 'bpf_kfunc_check_set_skb'? 12131 | .set = &bpf_kfunc_check_set_xdp, | ^~~~~~~~~~~~~~~~~~~~~~~ | bpf_kfunc_check_set_skb ../net/core/filter.c:12067:18: note: 'bpf_kfunc_check_set_skb' declared here 12067 | BTF_KFUNCS_START(bpf_kfunc_check_set_skb) | ^ 43 warnings and 9 errors generated. make[5]: *** [../scripts/Makefile.build:194: net/core/filter.o] Error 1 make[4]: *** [../scripts/Makefile.build:440: net/core] Error 2 make[3]: *** [../scripts/Makefile.build:440: net] Error 2 make[3]: *** Waiting for unfinished jobs.... In file included from ../kernel/bpf/bpf_inode_storage.c:12: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../kernel/bpf/bpf_lsm.c:7: In file included from ../include/linux/filter.h:9: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../kernel/bpf/trampoline.c:4: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../kernel/trace/bpf_trace.c:8: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/trace/bpf_trace.c:356:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 356 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:391:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 391 | .arg1_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:446:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 446 | .arg1_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:448:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 448 | .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/trace/bpf_trace.c:490:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 490 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:492:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 492 | .arg4_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/trace/bpf_trace.c:507:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 507 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:531:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 531 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:695:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 695 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1022:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1022 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1218:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1218 | .arg3_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1235:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1235 | .arg2_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1678:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1678 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1903:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1903 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1958:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1958 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 19 warnings generated. In file included from ../kernel/bpf/cgroup.c:11: In file included from ../include/linux/filter.h:9: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/cgroup.c:2177:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2177 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 5 warnings generated. In file included from ../kernel/bpf/syscall.c:4: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/syscall.c:5986:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5986 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/syscall.c:6036:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6036 | .arg4_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 6 warnings generated. In file included from ../kernel/bpf/btf.c:6: In file included from ../include/uapi/linux/bpf_perf_event.h:11: In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1: In file included from ../include/uapi/asm-generic/bpf_perf_event.h:4: In file included from ../include/linux/ptrace.h:10: In file included from ../include/linux/pid_namespace.h:7: In file included from ../include/linux/mm.h:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/btf.c:7673:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7673 | sub->args[i].arg_type = ARG_PTR_TO_DYNPTR | MEM_RDONLY; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/btf.c:7688:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7688 | sub->args[i].arg_type = ARG_PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/btf.c:7719:43: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7719 | sub->args[i].arg_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL; | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/btf.c:8250:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8250 | .arg1_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 8 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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:907:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 907 | 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:907:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 907 | 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:1127:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1127 | if (st->type & PTR_UNTRUSTED) | ~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2083:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2083 | regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:2103:14: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2103 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2103:45: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2103 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2636:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2636 | regs[regno].type = PTR_TO_BTF_ID | flag; | ~~~~~~~~~~~~~ ^ ~~~~ ../kernel/bpf/verifier.c:5667:62: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5667 | verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:5767:25: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5767 | reg->type = PTR_TO_MEM | PTR_MAYBE_NULL; | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:6160:19: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6160 | return reg->type & MEM_RCU; | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:7001:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7001 | if (reg->type & MEM_USER) { | ~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:7008:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7008 | if (reg->type & MEM_PERCPU) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:7032:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7032 | !(reg->type & MEM_RCU) && !reg->ref_obj_id) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8272:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8272 | if (arg_type & MEM_UNINIT) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8291:54: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8291 | if (reg->type == CONST_PTR_TO_DYNPTR && !(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8668:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8668 | type & MEM_UNINIT; | ~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8673:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8673 | return type & OBJ_RELEASE; | ~~~~ ^ ~~~~~~~~~~~ ../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:8747:14: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8747 | 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: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_ALLOC, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8763:79: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8763 | static const struct bpf_reg_types ringbuf_mem_types = { .types = { PTR_TO_MEM | MEM_RINGBUF } }; | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8768:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8768 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8769:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8769 | PTR_TO_BTF_ID | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8774:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8774 | PTR_TO_BTF_ID | MEM_PERCPU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8775:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8775 | PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8776:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8776 | PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8786:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8786 | PTR_TO_BTF_ID | MEM_ALLOC | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8850:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8850 | if (arg_type & MEM_RDONLY) | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8852:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8852 | if (arg_type & PTR_MAYBE_NULL) | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8883:18: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8883 | if (!(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8895:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8895 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8896:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8896 | case PTR_TO_BTF_ID | PTR_TRUSTED | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8897:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8897 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8898:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8898 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8899:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8899 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8944:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8944 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8945:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8945 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8957:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8957 | case PTR_TO_BTF_ID | MEM_PERCPU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8958:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8958 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8959:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8959 | case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9028:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9028 | case PTR_TO_MEM | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9029:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9029 | case PTR_TO_MEM | MEM_RINGBUF: | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9031:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9031 | case PTR_TO_BUF | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9039:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9039 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9040:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9040 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9041:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9041 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:9042:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9042 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9043:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9043 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9329:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9329 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9331:21: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9331 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9372:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9372 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9373:16: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9373 | if (arg_type & MEM_FIXED_SIZE) { | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9375:22: 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:9379:17: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9379 | if (arg_type & MEM_ALIGNED) | ~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9385:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9385 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9391:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9391 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9747:36: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9747 | bool is_fixed = fn->arg_type[arg] & MEM_FIXED_SIZE; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9790:26: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9790 | !(fn->arg_type[i] & MEM_FIXED_SIZE))) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10010:24: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10010 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10010:56: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10010 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10026:50: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10026 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:10997:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:10997:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:10997:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:10997:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:11152:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11152 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:11207:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11207 | regs[BPF_REG_0].type = PTR_TO_MAP_VALUE | ret_flag; | ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11215:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11215 | regs[BPF_REG_0].type = PTR_TO_SOCKET | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11219:45: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11219 | regs[BPF_REG_0].type = PTR_TO_SOCK_COMMON | ret_flag; | ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11223:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11223 | regs[BPF_REG_0].type = PTR_TO_TCP_SOCK | ret_flag; | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11227:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11227 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11249:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11249 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11253:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11253 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:11261:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11261 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11275:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11275 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:12131:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12131 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12628:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12628 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12633:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12633 | } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12668:25: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12668 | (dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12688:26: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12688 | if (!(dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12715:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12715 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12719:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12719 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12729:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12729 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12733:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12733 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12742:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12742 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12765:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12765 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13046:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13046 | 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:13046:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13046 | 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:13231:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13231 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13241:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13241 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13260:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13260 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:13272:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13272 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:13289:39: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13289 | regs[BPF_REG_0].type = PTR_TO_MEM | type_flag; | ~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13363:24: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13363 | if (cur_iter->type & MEM_RCU) /* KF_RCU_PROTECTED */ | ~~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:13823:20: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13823 | if (ptr_reg->type & PTR_MAYBE_NULL) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:18840:31: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 18840 | *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:19306:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19306 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19325:41: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19325 | aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19341:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19341 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:20392:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20392 | case PTR_TO_BTF_ID | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:20399:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20399 | case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:22113:51: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22113 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:22118:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22118 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22125:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22125 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22127:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22127 | if (arg->arg_type & PTR_UNTRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22129:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22129 | if (arg->arg_type & PTR_TRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 111 warnings generated. make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 In file included from ../security/bpf/hooks.c:6: In file included from ../include/linux/lsm_hooks.h:29: In file included from ../include/linux/security.h:33: In file included from ../include/linux/mm.h:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../fs/bpf_fs_kfuncs.c:4: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../fs/bpf_fs_kfuncs.c:342:1: error: invalid storage class specifier in function declarator 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) | ^ ../fs/bpf_fs_kfuncs.c:342:12: error: parameter named 'bpf_fs_kfuncs_filter' is missing 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) | ^ ../fs/bpf_fs_kfuncs.c:342:75: error: expected ';' at end of declaration 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) | ^ | ; ../fs/bpf_fs_kfuncs.c:337:25: error: parameter 'bpf_fs_kfunc_hidden_set_ids' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) | ^ 338 | BTF_ID_FLAGS(func, bpf_set_dentry_xattr_locked, KF_SLEEPABLE | KF_TRUSTED_ARGS) 339 | BTF_ID_FLAGS(func, bpf_remove_dentry_xattr_locked, KF_SLEEPABLE | KF_TRUSTED_ARGS) 340 | BTF_KFUNCS_END(bpf_fs_kfunc_hidden_set_ids) 341 | 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) 343 | { ../fs/bpf_fs_kfuncs.c:337:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) | ^ | int ../fs/bpf_fs_kfuncs.c:344:51: error: use of undeclared identifier 'kfunc_id' 344 | if (!btf_id_set8_contains(&bpf_fs_kfunc_set_ids, kfunc_id) && | ^ ../fs/bpf_fs_kfuncs.c:345:58: error: use of undeclared identifier 'kfunc_id' 345 | !btf_id_set8_contains(&bpf_fs_kfunc_hidden_set_ids, kfunc_id)) | ^ ../fs/bpf_fs_kfuncs.c:347:6: error: use of undeclared identifier 'prog' 347 | if (prog->type == BPF_PROG_TYPE_LSM) | ^ ../fs/bpf_fs_kfuncs.c:337:1: warning: no previous prototype for function 'BTF_HIDDEN_KFUNCS_START' [-Wmissing-prototypes] 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) | ^ ../fs/bpf_fs_kfuncs.c:337:24: note: declare 'static' if the function is not intended to be used outside of this translation unit 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) | ^ | static ../fs/bpf_fs_kfuncs.c:337:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Werror,-Wdeprecated-non-prototype] 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) | ^ ../fs/bpf_fs_kfuncs.c:408:17: error: use of undeclared identifier 'bpf_fs_kfunc_hidden_set_ids'; did you mean 'bpf_fs_kfunc_set_ids'? 408 | .hidden_set = &bpf_fs_kfunc_hidden_set_ids, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | bpf_fs_kfunc_set_ids ../fs/bpf_fs_kfuncs.c:326:18: note: 'bpf_fs_kfunc_set_ids' declared here 326 | BTF_KFUNCS_START(bpf_fs_kfunc_set_ids) | ^ ../fs/bpf_fs_kfuncs.c:409:12: error: use of undeclared identifier 'bpf_fs_kfuncs_filter'; did you mean 'bpf_fs_kfunc_set'? 409 | .filter = bpf_fs_kfuncs_filter, | ^~~~~~~~~~~~~~~~~~~~ | bpf_fs_kfunc_set ../fs/bpf_fs_kfuncs.c:405:38: note: 'bpf_fs_kfunc_set' declared here 405 | static const struct btf_kfunc_id_set bpf_fs_kfunc_set = { | ^ ../fs/bpf_fs_kfuncs.c:409:12: error: initializing 'btf_kfunc_filter_t' (aka 'int (*)(const struct bpf_prog *, unsigned int)') with an expression of incompatible type 'const struct btf_kfunc_id_set' 409 | .filter = bpf_fs_kfuncs_filter, | ^~~~~~~~~~~~~~~~~~~~ 5 warnings and 12 errors generated. make[4]: *** [../scripts/Makefile.build:194: fs/bpf_fs_kfuncs.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:440: fs] Error 2 make[3]: *** Waiting for unfinished jobs.... In file included from ../net/core/filter.c:21: In file included from ../include/linux/bpf_verifier.h:7: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ ../net/core/filter.c:1726:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1726 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:2041:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2041 | .arg1_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:2043:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2043 | .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:2580:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2580 | .arg2_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:4641:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4641 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:4655:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4655 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:4855:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4855 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:4883:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 4883 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5055:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5055 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5069:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5069 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5118:45: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5118 | .arg1_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON | PTR_MAYBE_NULL, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../net/core/filter.c:5553:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5553 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5587:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5587 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5621:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5621 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5655:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5655 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:5830:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5830 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6367:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6367 | .arg3_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../net/core/filter.c:6379:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6379 | .arg3_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../net/core/filter.c:6465:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6465 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6475:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6475 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6852:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6852 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6871:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6871 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6890:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6890 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6914:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6914 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6938:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6938 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6962:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6962 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:6979:45: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6979 | .arg1_type = ARG_PTR_TO_BTF_ID_SOCK_COMMON | OBJ_RELEASE, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../net/core/filter.c:7000:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7000 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7024:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7024 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7048:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7048 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7068:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7068 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7087:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7087 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7106:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7106 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7424:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7424 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7426:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7426 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7493:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7493 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7495:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7495 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:7724:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7724 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../net/core/filter.c:12075:1: error: invalid storage class specifier in function declarator 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../include/linux/btf_ids.h:235:32: note: expanded from macro 'BTF_KFUNCS_START' 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^ ../net/core/filter.c:12075:18: error: parameter named 'bpf_kfunc_check_set_xdp' is missing 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../net/core/filter.c:12075:1: error: expected ';' at end of declaration 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../include/linux/btf_ids.h:235:78: note: expanded from macro 'BTF_KFUNCS_START' 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^ ../net/core/filter.c:12071:25: error: parameter 'bpf_kfunc_check_hidden_set_skb' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ ../net/core/filter.c:12071:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ | int ../net/core/filter.c:12075:1: error: expected expression 12075 | BTF_KFUNCS_START(bpf_kfunc_check_set_xdp) | ^ ../include/linux/btf_ids.h:235:82: note: expanded from macro 'BTF_KFUNCS_START' 235 | #define BTF_KFUNCS_START(name) static struct btf_id_set8 __maybe_unused name = { .flags = BTF_SET8_KFUNCS }; | ^ ../net/core/filter.c:12071:1: warning: no previous prototype for function 'BTF_HIDDEN_KFUNCS_START' [-Wmissing-prototypes] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ ../net/core/filter.c:12071:24: note: declare 'static' if the function is not intended to be used outside of this translation unit 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ | static ../net/core/filter.c:12071:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Werror,-Wdeprecated-non-prototype] 12071 | BTF_HIDDEN_KFUNCS_START(bpf_kfunc_check_hidden_set_skb) | ^ ../net/core/filter.c:12125:17: error: use of undeclared identifier 'bpf_kfunc_check_hidden_set_skb'; did you mean 'bpf_kfunc_check_set_skb'? 12125 | .hidden_set = &bpf_kfunc_check_hidden_set_skb, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | bpf_kfunc_check_set_skb ../net/core/filter.c:12067:18: note: 'bpf_kfunc_check_set_skb' declared here 12067 | BTF_KFUNCS_START(bpf_kfunc_check_set_skb) | ^ ../net/core/filter.c:12131:10: error: use of undeclared identifier 'bpf_kfunc_check_set_xdp'; did you mean 'bpf_kfunc_check_set_skb'? 12131 | .set = &bpf_kfunc_check_set_xdp, | ^~~~~~~~~~~~~~~~~~~~~~~ | bpf_kfunc_check_set_skb ../net/core/filter.c:12067:18: note: 'bpf_kfunc_check_set_skb' declared here 12067 | BTF_KFUNCS_START(bpf_kfunc_check_set_skb) | ^ 43 warnings and 9 errors generated. make[5]: *** [../scripts/Makefile.build:194: net/core/filter.o] Error 1 make[4]: *** [../scripts/Makefile.build:440: net/core] Error 2 make[3]: *** [../scripts/Makefile.build:440: net] Error 2 In file included from ../kernel/bpf/bpf_inode_storage.c:12: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../kernel/bpf/trampoline.c:4: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../kernel/bpf/bpf_lsm.c:7: In file included from ../include/linux/filter.h:9: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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 + | ~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. In file included from ../kernel/trace/bpf_trace.c:8: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/trace/bpf_trace.c:356:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 356 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:391:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 391 | .arg1_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:446:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 446 | .arg1_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:448:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 448 | .arg3_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/trace/bpf_trace.c:490:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 490 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:492:35: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 492 | .arg4_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/trace/bpf_trace.c:507:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 507 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:531:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 531 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:695:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 695 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1022:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1022 | .arg3_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1218:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1218 | .arg3_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1235:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1235 | .arg2_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1678:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1678 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1903:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1903 | .arg4_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/trace/bpf_trace.c:1958:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1958 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 19 warnings generated. In file included from ../kernel/bpf/cgroup.c:11: In file included from ../include/linux/filter.h:9: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/cgroup.c:2177:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2177 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 5 warnings generated. In file included from ../kernel/bpf/syscall.c:4: 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/syscall.c:5986:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5986 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/syscall.c:6036:41: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6036 | .arg4_type = ARG_PTR_TO_FIXED_SIZE_MEM | MEM_UNINIT | MEM_WRITE | MEM_ALIGNED, | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 6 warnings generated. In file included from ../kernel/bpf/btf.c:6: In file included from ../include/uapi/linux/bpf_perf_event.h:11: In file included from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1: In file included from ../include/uapi/asm-generic/bpf_perf_event.h:4: In file included from ../include/linux/ptrace.h:10: In file included from ../include/linux/pid_namespace.h:7: In file included from ../include/linux/mm.h:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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/btf.c:7673:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7673 | sub->args[i].arg_type = ARG_PTR_TO_DYNPTR | MEM_RDONLY; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/btf.c:7688:46: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7688 | sub->args[i].arg_type = ARG_PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/btf.c:7719:43: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7719 | sub->args[i].arg_type = ARG_PTR_TO_MEM | PTR_MAYBE_NULL; | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/btf.c:8250:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8250 | .arg1_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 8 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:2223: ../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:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ ../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:907:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 907 | 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:907:33: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 907 | 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:1127:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 1127 | if (st->type & PTR_UNTRUSTED) | ~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2083:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2083 | regs[regno].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:2103:14: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2103 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2103:45: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2103 | (reg->type & DYNPTR_TYPE_SKB || reg->type & DYNPTR_TYPE_XDP); | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:2636:35: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 2636 | regs[regno].type = PTR_TO_BTF_ID | flag; | ~~~~~~~~~~~~~ ^ ~~~~ ../kernel/bpf/verifier.c:5667:62: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5667 | verbose(env, " or %s%s\n", reg_type_str(env, PTR_TO_BTF_ID | PTR_UNTRUSTED), | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:5767:25: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5767 | reg->type = PTR_TO_MEM | PTR_MAYBE_NULL; | ~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:6160:19: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 6160 | return reg->type & MEM_RCU; | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:7001:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7001 | if (reg->type & MEM_USER) { | ~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:7008:16: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7008 | if (reg->type & MEM_PERCPU) { | ~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:7032:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 7032 | !(reg->type & MEM_RCU) && !reg->ref_obj_id) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8272:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8272 | if (arg_type & MEM_UNINIT) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8291:54: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8291 | if (reg->type == CONST_PTR_TO_DYNPTR && !(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8668:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8668 | type & MEM_UNINIT; | ~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8673:14: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8673 | return type & OBJ_RELEASE; | ~~~~ ^ ~~~~~~~~~~~ ../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:8747:14: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8747 | 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: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_ALLOC, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8763:79: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8763 | static const struct bpf_reg_types ringbuf_mem_types = { .types = { PTR_TO_MEM | MEM_RINGBUF } }; | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8768:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8768 | PTR_TO_BTF_ID | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8769:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8769 | PTR_TO_BTF_ID | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8774:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8774 | PTR_TO_BTF_ID | MEM_PERCPU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8775:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8775 | PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8776:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8776 | PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED, | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8786:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8786 | PTR_TO_BTF_ID | MEM_ALLOC | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8850:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8850 | if (arg_type & MEM_RDONLY) | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8852:15: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8852 | if (arg_type & PTR_MAYBE_NULL) | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8883:18: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8883 | if (!(arg_type & MEM_RDONLY)) { | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8895:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8895 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8896:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8896 | case PTR_TO_BTF_ID | PTR_TRUSTED | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:8897:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8897 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:8898:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8898 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8899:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8899 | case PTR_TO_BTF_ID | PTR_MAYBE_NULL | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:8944:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8944 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:8945:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8945 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8957:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8957 | case PTR_TO_BTF_ID | MEM_PERCPU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8958:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8958 | case PTR_TO_BTF_ID | MEM_PERCPU | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:8959:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 8959 | case PTR_TO_BTF_ID | MEM_PERCPU | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9028:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9028 | case PTR_TO_MEM | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9029:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9029 | case PTR_TO_MEM | MEM_RINGBUF: | ~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9031:18: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9031 | case PTR_TO_BUF | MEM_RDONLY: | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9039:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9039 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9040:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9040 | case PTR_TO_BTF_ID | PTR_TRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9041:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9041 | case PTR_TO_BTF_ID | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:9042:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9042 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9043:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9043 | case PTR_TO_BTF_ID | MEM_ALLOC | NON_OWN_REF | MEM_RCU: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9329:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9329 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9331:21: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9331 | arg_type & MEM_WRITE ? BPF_WRITE : BPF_READ, | ~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9372:29: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9372 | meta->raw_mode = arg_type & MEM_UNINIT; | ~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:9373:16: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9373 | if (arg_type & MEM_FIXED_SIZE) { | ~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9375:22: 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:9379:17: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9379 | if (arg_type & MEM_ALIGNED) | ~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:9385:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9385 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9391:29: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9391 | fn->arg_type[arg - 1] & MEM_WRITE ? | ~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:9747:36: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9747 | bool is_fixed = fn->arg_type[arg] & MEM_FIXED_SIZE; | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:9790:26: warning: bitwise operation between different enumeration types ('const enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 9790 | !(fn->arg_type[i] & MEM_FIXED_SIZE))) | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10010:24: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10010 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10010:56: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10010 | if (!(arg->arg_type & PTR_MAYBE_NULL) && (reg->type & PTR_MAYBE_NULL)) { | ~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:10026:50: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10026 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:10997:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:10997:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:10997:32: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:10997:59: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 10997 | 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:11152:17: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11152 | if (reg->type & MEM_RCU) { | ~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:11207:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11207 | regs[BPF_REG_0].type = PTR_TO_MAP_VALUE | ret_flag; | ~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11215:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11215 | regs[BPF_REG_0].type = PTR_TO_SOCKET | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11219:45: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11219 | regs[BPF_REG_0].type = PTR_TO_SOCK_COMMON | ret_flag; | ~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11223:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11223 | regs[BPF_REG_0].type = PTR_TO_TCP_SOCK | ret_flag; | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11227:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11227 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11249:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11249 | regs[BPF_REG_0].type = PTR_TO_MEM | ret_flag; | ~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11253:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11253 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC | MEM_RCU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:11261:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11261 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:11275:40: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 11275 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | ret_flag; | ~~~~~~~~~~~~~ ^ ~~~~~~~~ ../kernel/bpf/verifier.c:12131:21: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12131 | case PTR_TO_BTF_ID | MEM_ALLOC: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12628:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12628 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12633:43: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12633 | } else if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC | MEM_PERCPU)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12668:25: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12668 | (dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12688:26: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12688 | if (!(dynptr_arg_type & MEM_UNINIT)) { | ~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:12715:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12715 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12719:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12719 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12729:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12729 | reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12733:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12733 | if (reg->type == (PTR_TO_BTF_ID | MEM_ALLOC) && !reg->ref_obj_id) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12742:36: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12742 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:12765:37: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 12765 | if (reg->type != (PTR_TO_BTF_ID | MEM_ALLOC)) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13046:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13046 | 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:13046:19: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13046 | 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:13231:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13231 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13241:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13241 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | MEM_ALLOC; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13260:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13260 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_TRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ ../kernel/bpf/verifier.c:13272:42: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13272 | regs[BPF_REG_0].type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:13289:39: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13289 | regs[BPF_REG_0].type = PTR_TO_MEM | type_flag; | ~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:13363:24: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13363 | if (cur_iter->type & MEM_RCU) /* KF_RCU_PROTECTED */ | ~~~~~~~~~~~~~~ ^ ~~~~~~~ ../kernel/bpf/verifier.c:13823:20: warning: bitwise operation between different enumeration types ('const enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 13823 | if (ptr_reg->type & PTR_MAYBE_NULL) { | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:18840:31: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 18840 | *prev_type = PTR_TO_BTF_ID | PTR_UNTRUSTED; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:19306:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19306 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19325:41: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19325 | aux->btf_var.reg_type = PTR_TO_BTF_ID | MEM_PERCPU; | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:19341:38: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 19341 | aux->btf_var.reg_type = PTR_TO_MEM | MEM_RDONLY; | ~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:20392:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20392 | case PTR_TO_BTF_ID | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:20399:22: warning: bitwise operation between different enumeration types ('enum bpf_reg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 20399 | case PTR_TO_BTF_ID | MEM_ALLOC | PTR_UNTRUSTED: | ~~~~~~~~~~~~~ ^ ~~~~~~~~~ ../kernel/bpf/verifier.c:22113:51: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22113 | } else if (arg->arg_type == (ARG_PTR_TO_DYNPTR | MEM_RDONLY)) { | ~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ ../kernel/bpf/verifier.c:22118:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22118 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22125:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22125 | if (arg->arg_type & PTR_MAYBE_NULL) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22127:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22127 | if (arg->arg_type & PTR_UNTRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ ../kernel/bpf/verifier.c:22129:23: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 22129 | if (arg->arg_type & PTR_TRUSTED) | ~~~~~~~~~~~~~ ^ ~~~~~~~~~~~ 111 warnings generated. make[2]: *** [/home/nipa/bpf-next/wt-0/Makefile:1989: .] Error 2 make[1]: *** [/home/nipa/bpf-next/wt-0/Makefile:251: __sub-make] Error 2 make: *** [Makefile:251: __sub-make] Error 2 New errors added --- /tmp/tmp.TbYaNL35oW 2024-12-19 13:28:09.355701873 -0800 +++ /tmp/tmp.zEkCAbSweg 2024-12-19 13:28:34.164448723 -0800 @@ -38 +38,64 @@ -4 warnings generated. +../fs/bpf_fs_kfuncs.c:342:1: error: invalid storage class specifier in function declarator + 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) + | ^ +../fs/bpf_fs_kfuncs.c:342:12: error: parameter named 'bpf_fs_kfuncs_filter' is missing + 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) + | ^ +../fs/bpf_fs_kfuncs.c:342:75: error: expected ';' at end of declaration + 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) + | ^ + | ; +../fs/bpf_fs_kfuncs.c:337:25: error: parameter 'bpf_fs_kfunc_hidden_set_ids' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] + 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) + | ^ + 338 | BTF_ID_FLAGS(func, bpf_set_dentry_xattr_locked, KF_SLEEPABLE | KF_TRUSTED_ARGS) + 339 | BTF_ID_FLAGS(func, bpf_remove_dentry_xattr_locked, KF_SLEEPABLE | KF_TRUSTED_ARGS) + 340 | BTF_KFUNCS_END(bpf_fs_kfunc_hidden_set_ids) + 341 | + 342 | static int bpf_fs_kfuncs_filter(const struct bpf_prog *prog, u32 kfunc_id) + 343 | { +../fs/bpf_fs_kfuncs.c:337:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] + 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) + | ^ + | int +../fs/bpf_fs_kfuncs.c:344:51: error: use of undeclared identifier 'kfunc_id' + 344 | if (!btf_id_set8_contains(&bpf_fs_kfunc_set_ids, kfunc_id) && + | ^ +../fs/bpf_fs_kfuncs.c:345:58: error: use of undeclared identifier 'kfunc_id' + 345 | !btf_id_set8_contains(&bpf_fs_kfunc_hidden_set_ids, kfunc_id)) + | ^ +../fs/bpf_fs_kfuncs.c:347:6: error: use of undeclared identifier 'prog' + 347 | if (prog->type == BPF_PROG_TYPE_LSM) + | ^ +../fs/bpf_fs_kfuncs.c:337:1: warning: no previous prototype for function 'BTF_HIDDEN_KFUNCS_START' [-Wmissing-prototypes] + 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) + | ^ +../fs/bpf_fs_kfuncs.c:337:24: note: declare 'static' if the function is not intended to be used outside of this translation unit + 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) + | ^ + | static +../fs/bpf_fs_kfuncs.c:337:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Werror,-Wdeprecated-non-prototype] + 337 | BTF_HIDDEN_KFUNCS_START(bpf_fs_kfunc_hidden_set_ids) + | ^ +../fs/bpf_fs_kfuncs.c:408:17: error: use of undeclared identifier 'bpf_fs_kfunc_hidden_set_ids'; did you mean 'bpf_fs_kfunc_set_ids'? + 408 | .hidden_set = &bpf_fs_kfunc_hidden_set_ids, + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ + | bpf_fs_kfunc_set_ids +../fs/bpf_fs_kfuncs.c:326:18: note: 'bpf_fs_kfunc_set_ids' declared here + 326 | BTF_KFUNCS_START(bpf_fs_kfunc_set_ids) + | ^ +../fs/bpf_fs_kfuncs.c:409:12: error: use of undeclared identifier 'bpf_fs_kfuncs_filter'; did you mean 'bpf_fs_kfunc_set'? + 409 | .filter = bpf_fs_kfuncs_filter, + | ^~~~~~~~~~~~~~~~~~~~ + | bpf_fs_kfunc_set +../fs/bpf_fs_kfuncs.c:405:38: note: 'bpf_fs_kfunc_set' declared here + 405 | static const struct btf_kfunc_id_set bpf_fs_kfunc_set = { + | ^ +../fs/bpf_fs_kfuncs.c:409:12: error: initializing 'btf_kfunc_filter_t' (aka 'int (*)(const struct bpf_prog *, unsigned int)') with an expression of incompatible type 'const struct btf_kfunc_id_set' + 409 | .filter = bpf_fs_kfuncs_filter, + | ^~~~~~~~~~~~~~~~~~~~ +5 warnings and 12 errors generated. +make[4]: *** [../scripts/Makefile.build:194: fs/bpf_fs_kfuncs.o] Error 1 +make[4]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:440: fs] Error 2 +make[3]: *** Waiting for unfinished jobs.... @@ -228 +290,0 @@ -make[3]: *** Waiting for unfinished jobs.... @@ -248,2 +310 @@ -In file included from ../kernel/bpf/bpf_lsm.c:7: -In file included from ../include/linux/filter.h:9: +In file included from ../kernel/bpf/trampoline.c:4: @@ -268 +329,2 @@ -In file included from ../kernel/bpf/trampoline.c:4: +In file included from ../kernel/bpf/bpf_lsm.c:7: +In file included from ../include/linux/filter.h:9: Per-file breakdown --- /tmp/tmp.EQLsiskYOL 2024-12-19 13:28:34.176448601 -0800 +++ /tmp/tmp.Hud8KzLSqh 2024-12-19 13:28:34.183448529 -0800 @@ -0,0 +1 @@ + 13 ../fs/bpf_fs_kfuncs.c