From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 413/2574] kernel/bpf/core.c:62:6: warning: no previous prototype for function 'bpf_jit_dump'
Date: Mon, 21 Feb 2022 09:10:38 +0800 [thread overview]
Message-ID: <202202210906.6oI53C71-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 39e8a0edc8fae20758051dadf7846849edc18b88
commit: 693153354d8d8df0fd4fd0d81ca659ca9c96d2e9 [413/2574] headers/uninline: Uninline multi-use function: bpf_jit_dump()
config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220221/202202210906.6oI53C71-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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/mingo/tip.git/commit/?id=693153354d8d8df0fd4fd0d81ca659ca9c96d2e9
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 693153354d8d8df0fd4fd0d81ca659ca9c96d2e9
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/entry/vsyscall/ arch/x86/pci/ kernel/bpf/ kernel/sched/ kernel/trace/ lib/ net/ipv6/
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/core.c:62:6: warning: no previous prototype for function 'bpf_jit_dump' [-Wmissing-prototypes]
void bpf_jit_dump(unsigned int flen, unsigned int proglen, u32 pass, void *image)
^
kernel/bpf/core.c:62:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void bpf_jit_dump(unsigned int flen, unsigned int proglen, u32 pass, void *image)
^
static
kernel/bpf/core.c:1378:12: warning: no previous prototype for function 'bpf_probe_read_kernel' [-Wmissing-prototypes]
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
kernel/bpf/core.c:1378:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr)
^
static
2 warnings generated.
vim +/bpf_jit_dump +62 kernel/bpf/core.c
61
> 62 void bpf_jit_dump(unsigned int flen, unsigned int proglen, u32 pass, void *image)
63 {
64 pr_err("flen=%u proglen=%u pass=%u image=%pK from=%s pid=%d\n", flen,
65 proglen, pass, image, current->comm, task_pid_nr(current));
66
67 if (image)
68 print_hex_dump(KERN_ERR, "JIT code: ", DUMP_PREFIX_OFFSET,
69 16, 1, image, proglen, false);
70 }
71
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-02-21 1:11 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=202202210906.6oI53C71-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mingo@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox