From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [ast:fexit_fix 2/2] kernel/bpf/trampoline.c:199:30: warning: no previous prototype for function 'bpf_trampoline_image_alloc'
Date: Sat, 13 Mar 2021 11:02:17 +0800 [thread overview]
Message-ID: <202103131113.UixhlRpl-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-03-13 3:02 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=202103131113.UixhlRpl-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/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.