[jolsa-perf:bpf/tracing_multi_new_1 22/23] kernel/bpf/syscall.c:3150:27: error: field 'fops' has incomplete type

From: kernel test robot
Date: Sat Aug 13 2022 - 10:29:28 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_new_1
head: e27bb6c0f6805082ef71568985f74dcefe7ff6ff
commit: dc38a65ab46f4ba538353c1eb7c64ac36202eb54 [22/23] fix
config: i386-randconfig-a003 (https://download.01.org/0day-ci/archive/20220813/202208132235.CyiLD4fT-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=dc38a65ab46f4ba538353c1eb7c64ac36202eb54
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_new_1
git checkout dc38a65ab46f4ba538353c1eb7c64ac36202eb54
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> kernel/bpf/syscall.c:3150:27: error: field 'fops' has incomplete type
3150 | struct ftrace_ops fops;
| ^~~~


vim +/fops +3150 kernel/bpf/syscall.c

3144
3145 struct bpf_tracing_multi_link {
3146 struct bpf_link link;
3147 enum bpf_attach_type attach_type;
3148 struct bpf_tramp_prog tp;
3149 struct bpf_tramp_id *id;
> 3150 struct ftrace_ops fops;
3151 };
3152

--
0-DAY CI Kernel Test Service
https://01.org/lkp