Hi "Toke,
I love your patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url:
https://github.com/0day-ci/linux/commits/Toke-H-iland-J-rgensen/bpf-Suppo...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: i386-randconfig-a014-20200914 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: kernel/bpf/core.o: in function `bpf_prog_free_deferred':
> kernel/bpf/core.c:2133: undefined reference to
`bpf_tracing_link_free'
#
https://github.com/0day-ci/linux/commit/3c0e2196879a758e13a0dc59ea06c3c02...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Toke-H-iland-J-rgensen/bpf-Support-multi-attach-for-freplace-programs/20200915-003428
git checkout 3c0e2196879a758e13a0dc59ea06c3c02e5236bf
vim +2133 kernel/bpf/core.c
2119
2120 static void bpf_prog_free_deferred(struct work_struct *work)
2121 {
2122 struct bpf_prog_aux *aux;
2123 int i;
2124
2125 aux = container_of(work, struct bpf_prog_aux, work);
2126 bpf_free_used_maps(aux);
2127 if (bpf_prog_is_dev_bound(aux))
2128 bpf_prog_offload_destroy(aux->prog);
2129 #ifdef CONFIG_PERF_EVENTS
2130 if (aux->prog->has_callchain_buf)
2131 put_callchain_buffers();
2132 #endif
2133 bpf_tracing_link_free(aux->tgt_link);
2134 for (i =
0; i < aux->func_cnt; i++)
2135 bpf_jit_free(aux->func[i]);
2136 if (aux->func_cnt) {
2137 kfree(aux->func);
2138 bpf_prog_unlock_free(aux->prog);
2139 } else {
2140 bpf_jit_free(aux->prog);
2141 }
2142 }
2143
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org