* 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'?
@ 2026-08-16 6:22 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-16 6:22 UTC (permalink / raw)
To: Pu Lehui; +Cc: oe-kbuild-all, 0day robot
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/202608160842.bEJPm8w0-lkp@intel.com/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/202608160842.bEJPm8w0-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608160842.bEJPm8w0-lkp@intel.com/
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-16 6:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-16 6:22 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
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.