arch/s390/net/bpf_jit_comp.c:3125:49: error: implicit declaration of function 'bpf_jit_binary_hdr'; did you mean 'bpf_jit_binary_free'?
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/intel-lab-lkp/linux/commits/Pu-Lehui/bpf-arm64-Fix-memory-leak-in-bpf_jit_free/20260814-035453 head: 3c6c16ba6a344682b307bb4f0cce5dd0648c2a1a commit: 9ac7eec2dea338df039c74eda34d74059ac2b8ab s390/bpf: Fix memory leak in bpf_jit_free date: 2 days ago config: s390-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260816/[email protected]/config) compiler: s390x-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260816/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): arch/s390/net/bpf_jit_comp.c: In function 'bpf_jit_free': >> arch/s390/net/bpf_jit_comp.c:3125:49: error: implicit declaration of function 'bpf_jit_binary_hdr'; did you mean 'bpf_jit_binary_free'? [-Wimplicit-function-declaration] 3125 | struct bpf_binary_header *hdr = bpf_jit_binary_hdr(fp); | ^~~~~~~~~~~~~~~~~~ | bpf_jit_binary_free >> arch/s390/net/bpf_jit_comp.c:3125:49: error: initialization of 'struct bpf_binary_header *' from 'int' makes pointer from integer without a cast [-Wint-conversion] >> arch/s390/net/bpf_jit_comp.c:3129:40: error: invalid use of undefined type 'struct bpf_jit_data' 3129 | kvfree(jit_data->ctx.addrs); | ^~ vim +3125 arch/s390/net/bpf_jit_comp.c 3120 3121 void bpf_jit_free(struct bpf_prog *fp) 3122 { 3123 if (fp->jited) { 3124 struct bpf_jit_data *jit_data = fp->aux->jit_data; > 3125 struct bpf_binary_header *hdr = bpf_jit_binary_hdr(fp); 3126 3127 /* Cleanup for earlier subprogs if jit_subprogs() aborts */ 3128 if (jit_data) { > 3129 kvfree(jit_data->ctx.addrs); -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki