From: kernel test robot <lkp@intel.com>
To: Pu Lehui <pulehui@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: 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'?
Date: Sun, 16 Aug 2026 08:22:16 +0200 [thread overview]
Message-ID: <202608160842.bEJPm8w0-lkp@intel.com> (raw)
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
reply other threads:[~2026-08-16 6:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202608160842.bEJPm8w0-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pulehui@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.