[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201051354.QjvAtGDv-lkp@intel.com>
Date: Wed, 5 Jan 2022 13:47:41 +0800
From: kernel test robot <lkp@...el.com>
To: Jiri Olsa <jolsa@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [jolsa-perf:kprobe/multi 9/14] kernel/bpf/syscall.c:3101:25: error:
implicit declaration of function 'get_kretprobe'; did you mean 'get_kprobe'?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git kprobe/multi
head: 27d253a29de023f664387fcc049edeeaadf23c8e
commit: b8b03607ea9875a92ea20941ebe6813fb052aeff [9/14] bpf: Add kprobe link for attaching raw kprobes
config: x86_64-buildonly-randconfig-r001-20220105 (https://download.01.org/0day-ci/archive/20220105/202201051354.QjvAtGDv-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=b8b03607ea9875a92ea20941ebe6813fb052aeff
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf kprobe/multi
git checkout b8b03607ea9875a92ea20941ebe6813fb052aeff
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/bpf/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
kernel/bpf/syscall.c: In function 'kretprobe_dispatcher':
>> kernel/bpf/syscall.c:3101:25: error: implicit declaration of function 'get_kretprobe'; did you mean 'get_kprobe'? [-Werror=implicit-function-declaration]
3101 | struct kretprobe *rp = get_kretprobe(ri);
| ^~~~~~~~~~~~~
| get_kprobe
kernel/bpf/syscall.c:3101:25: warning: initialization of 'struct kretprobe *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
cc1: some warnings being treated as errors
vim +3101 kernel/bpf/syscall.c
3097
3098 static int
3099 kretprobe_dispatcher(struct kretprobe_instance *ri, struct pt_regs *regs)
3100 {
> 3101 struct kretprobe *rp = get_kretprobe(ri);
3102 struct bpf_kprobe_link *kprobe_link;
3103
3104 kprobe_link = container_of(rp, struct bpf_kprobe_link, rp);
3105 return kprobe_link_prog_run(kprobe_link, regs);
3106 }
3107
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Powered by blists - more mailing lists