tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_ng_7 head: c35e21f7c5e98d9c2a5056305f17127e05b6c209 commit: 0e2853298c650132bd493b742a587409f608a71a [26/30] bpf: Add support to create tracing multi link config: powerpc-allnoconfig compiler: powerpc-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=0e2853298c650132bd493b742a587409f608a71a git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git git fetch --no-tags jolsa-perf bpf/tracing_multi_ng_7 git checkout 0e2853298c650132bd493b742a587409f608a71a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash arch/powerpc/kernel/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/trace/syscall.h:7, from include/linux/syscalls.h:88, from arch/powerpc/kernel/syscalls.c:19: >> include/linux/trace_events.h:798:5: error: no previous prototype for 'bpf_tracing_multi_attach' [-Werror=missing-prototypes] 798 | int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr) | ^~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors vim +/bpf_tracing_multi_attach +798 include/linux/trace_events.h 765 766 static inline int 767 perf_event_query_prog_array(struct perf_event *event, void __user *info) 768 { 769 return -EOPNOTSUPP; 770 } 771 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p) 772 { 773 return -EOPNOTSUPP; 774 } 775 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p) 776 { 777 return -EOPNOTSUPP; 778 } 779 static inline struct bpf_raw_event_map *bpf_get_raw_tracepoint(const char *name) 780 { 781 return NULL; 782 } 783 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp) 784 { 785 } 786 static inline int bpf_get_perf_event_info(const struct perf_event *event, 787 u32 *prog_id, u32 *fd_type, 788 const char **buf, u64 *probe_offset, 789 u64 *probe_addr) 790 { 791 return -EOPNOTSUPP; 792 } 793 static inline int 794 bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) 795 { 796 return -EOPNOTSUPP; 797 } > 798 int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr) 799 { 800 return -EOPNOTSUPP; 801 } 802 #endif 803 -- 0-DAY CI Kernel Test Service https://01.org/lkp