* [jolsa-perf:kprobe/multi 9/14] kernel/bpf/syscall.c:3101:25: error: implicit declaration of function 'get_kretprobe'
@ 2022-01-04 12:02 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-04 12:02 UTC (permalink / raw)
To: Jiri Olsa; +Cc: llvm, kbuild-all, linux-kernel
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: i386-buildonly-randconfig-r001-20220104 (https://download.01.org/0day-ci/archive/20220104/202201041923.vrtf9Rke-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b50fea47b6c454581fce89af359f3afe5154986c)
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/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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/bpf/syscall.c:35:
include/linux/kprobes.h:77:21: error: field has incomplete type 'struct ftrace_ops'
struct ftrace_ops ops;
^
include/linux/ftrace.h:332:8: note: forward declaration of 'struct ftrace_ops'
struct ftrace_ops;
^
>> kernel/bpf/syscall.c:3101:25: error: implicit declaration of function 'get_kretprobe' [-Werror,-Wimplicit-function-declaration]
struct kretprobe *rp = get_kretprobe(ri);
^
kernel/bpf/syscall.c:3101:25: note: did you mean 'get_kprobe'?
include/linux/kprobes.h:479:30: note: 'get_kprobe' declared here
static inline struct kprobe *get_kprobe(void *addr)
^
kernel/bpf/syscall.c:3101:20: warning: incompatible integer to pointer conversion initializing 'struct kretprobe *' with an expression of type 'int' [-Wint-conversion]
struct kretprobe *rp = get_kretprobe(ri);
^ ~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
vim +/get_kretprobe +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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [jolsa-perf:kprobe/multi 9/14] kernel/bpf/syscall.c:3101:25: error: implicit declaration of function 'get_kretprobe'
@ 2022-01-04 12:02 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-01-04 12:02 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3006 bytes --]
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: i386-buildonly-randconfig-r001-20220104 (https://download.01.org/0day-ci/archive/20220104/202201041923.vrtf9Rke-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b50fea47b6c454581fce89af359f3afe5154986c)
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/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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/bpf/syscall.c:35:
include/linux/kprobes.h:77:21: error: field has incomplete type 'struct ftrace_ops'
struct ftrace_ops ops;
^
include/linux/ftrace.h:332:8: note: forward declaration of 'struct ftrace_ops'
struct ftrace_ops;
^
>> kernel/bpf/syscall.c:3101:25: error: implicit declaration of function 'get_kretprobe' [-Werror,-Wimplicit-function-declaration]
struct kretprobe *rp = get_kretprobe(ri);
^
kernel/bpf/syscall.c:3101:25: note: did you mean 'get_kprobe'?
include/linux/kprobes.h:479:30: note: 'get_kprobe' declared here
static inline struct kprobe *get_kprobe(void *addr)
^
kernel/bpf/syscall.c:3101:20: warning: incompatible integer to pointer conversion initializing 'struct kretprobe *' with an expression of type 'int' [-Wint-conversion]
struct kretprobe *rp = get_kretprobe(ri);
^ ~~~~~~~~~~~~~~~~~
1 warning and 2 errors generated.
vim +/get_kretprobe +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(a)lists.01.org
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-04 12:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 12:02 [jolsa-perf:kprobe/multi 9/14] kernel/bpf/syscall.c:3101:25: error: implicit declaration of function 'get_kretprobe' kernel test robot
2022-01-04 12:02 ` 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.