Hi Andrii, kernel test robot noticed the following build errors: [auto build test ERROR on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Andrii-Nakryiko/bpf-flatten-bpf_probe_register-call-chain/20240316-044808 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master patch link: https://lore.kernel.org/r/20240315204524.967664-3-andrii%40kernel.org patch subject: [PATCH bpf-next 2/5] bpf: pass whole link instead of prog when triggering raw tracepoint config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240316/202403161557.04JKlQo6-lkp@xxxxxxxxx/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 8f68022f8e6e54d1aeae4ed301f5a015963089b7) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240316/202403161557.04JKlQo6-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202403161557.04JKlQo6-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): 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:2188: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> kernel/bpf/syscall.c:3477:36: error: incompatible pointer types passing 'struct bpf_raw_tp_link *' to parameter of type 'struct bpf_prog *' [-Werror,-Wincompatible-pointer-types] 3477 | bpf_probe_unregister(raw_tp->btp, raw_tp); | ^~~~~~ include/linux/trace_events.h:798:88: note: passing argument to parameter 'p' here 798 | static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p) | ^ kernel/bpf/syscall.c:3831:38: error: incompatible pointer types passing 'struct bpf_raw_tp_link *' to parameter of type 'struct bpf_prog *' [-Werror,-Wincompatible-pointer-types] 3831 | err = bpf_probe_register(link->btp, link); | ^~~~ include/linux/trace_events.h:794:86: note: passing argument to parameter 'p' here 794 | static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p) | ^ kernel/bpf/syscall.c:5822:30: warning: bitwise operation between different enumeration types ('enum bpf_arg_type' and 'enum bpf_type_flag') [-Wenum-enum-conversion] 5822 | .arg2_type = ARG_PTR_TO_MEM | MEM_RDONLY, | ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~ 2 warnings and 2 errors generated. vim +3477 kernel/bpf/syscall.c 3471 3472 static void bpf_raw_tp_link_release(struct bpf_link *link) 3473 { 3474 struct bpf_raw_tp_link *raw_tp = 3475 container_of(link, struct bpf_raw_tp_link, link); 3476 > 3477 bpf_probe_unregister(raw_tp->btp, raw_tp); 3478 bpf_put_raw_tracepoint(raw_tp->btp); 3479 } 3480 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki