tree:
https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git fexit_fix
head: d0953e3c28d70fa9d39e6db07d2cffbe7ce1f0e2
commit: d0953e3c28d70fa9d39e6db07d2cffbe7ce1f0e2 [2/2] bpf: Fix fexit trampoline.
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git/commit/?id=d0...
git remote add ast
https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git
git fetch --no-tags ast fexit_fix
git checkout d0953e3c28d70fa9d39e6db07d2cffbe7ce1f0e2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> kernel/bpf/trampoline.c:199:30: warning: no previous prototype
for 'bpf_trampoline_image_alloc' [-Wmissing-prototypes]
199 | struct
bpf_trampoline_image *bpf_trampoline_image_alloc(u64 key, u32 idx)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/bpf_trampoline_image_alloc +199 kernel/bpf/trampoline.c
198
199 struct bpf_trampoline_image *bpf_trampoline_image_alloc(u64 key,
u32 idx)
200 {
201 struct bpf_trampoline_image *im;
202 struct bpf_ksym *ksym;
203 void *image;
204 int err = -ENOMEM;
205
206 im = kzalloc(sizeof(*im), GFP_KERNEL);
207 if (!im)
208 goto out;
209
210 err = bpf_jit_charge_modmem(1);
211 if (err)
212 goto out_free_im;
213
214 err = -ENOMEM;
215 im->image = image = bpf_jit_alloc_exec_page();
216 if (!image)
217 goto out_uncharge;
218
219 ksym = &im->ksym;
220 INIT_LIST_HEAD_RCU(&ksym->lnode);
221 snprintf(ksym->name, KSYM_NAME_LEN, "bpf_trampoline_%llu_%u", key,
idx);
222 bpf_image_ksym_add(image, ksym);
223 return im;
224
225 out_uncharge:
226 bpf_jit_uncharge_modmem(1);
227 out_free_im:
228 kfree(im);
229 out:
230 return ERR_PTR(err);
231 }
232
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org