* [ast:fexit_fix 2/2] kernel/bpf/trampoline.c:199:30: warning: no previous prototype for function 'bpf_trampoline_image_alloc'
@ 2021-03-13 3:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-13 3:02 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2930 bytes --]
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: x86_64-randconfig-a001-20210312 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project dfd27ebbd0eb137c9a439b7c537bb87ba903efd3)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git/commit/?id=d0953e3c28d70fa9d39e6db07d2cffbe7ce1f0e2
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=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> kernel/bpf/trampoline.c:199:30: warning: no previous prototype for function 'bpf_trampoline_image_alloc' [-Wmissing-prototypes]
struct bpf_trampoline_image *bpf_trampoline_image_alloc(u64 key, u32 idx)
^
kernel/bpf/trampoline.c:199:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct bpf_trampoline_image *bpf_trampoline_image_alloc(u64 key, u32 idx)
^
static
1 warning generated.
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33338 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-03-13 3:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-13 3:02 [ast:fexit_fix 2/2] kernel/bpf/trampoline.c:199:30: warning: no previous prototype for function 'bpf_trampoline_image_alloc' 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.