From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [jolsa-perf:bpf/tracing_multi_9 6/12] include/linux/trace_events.h:834:5: warning: no previous prototype for function 'bpf_tracing_multi_attach'
Date: Sat, 31 Jan 2026 12:59:06 +0800 [thread overview]
Message-ID: <202601311253.RFAVL9Uf-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/tracing_multi_9
head: 4a1d38e3df06743886a06b547187aec8023ef27d
commit: 43cf4edef3aa5c2d42fff08ce0a553010aae6a11 [6/12] bpf: Add support to create tracing multi link
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20260131/202601311253.RFAVL9Uf-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 9b8addffa70cee5b2acc5454712d9cf78ce45710)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260131/202601311253.RFAVL9Uf-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202601311253.RFAVL9Uf-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from kernel/sched/rq-offsets.c:5:
In file included from kernel/sched/sched.h:61:
In file included from include/linux/syscalls_api.h:1:
In file included from include/linux/syscalls.h:96:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:53:
In file included from include/linux/security.h:35:
include/linux/bpf.h:1550:51: warning: declaration of 'struct bpf_tramp_link' will not be visible outside of this function [-Wvisibility]
1550 | static inline int bpf_trampoline_link_prog(struct bpf_tramp_link *link,
| ^
include/linux/bpf.h:1556:53: warning: declaration of 'struct bpf_tramp_link' will not be visible outside of this function [-Wvisibility]
1556 | static inline int bpf_trampoline_unlink_prog(struct bpf_tramp_link *link,
| ^
In file included from kernel/sched/rq-offsets.c:5:
In file included from kernel/sched/sched.h:61:
In file included from include/linux/syscalls_api.h:1:
In file included from include/linux/syscalls.h:96:
In file included from include/trace/syscall.h:7:
>> include/linux/trace_events.h:834:5: warning: no previous prototype for function 'bpf_tracing_multi_attach' [-Wmissing-prototypes]
834 | int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
| ^
include/linux/trace_events.h:834:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
834 | int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
| ^
| static
3 warnings generated.
--
In file included from kernel/sched/rq-offsets.c:5:
In file included from kernel/sched/sched.h:61:
In file included from include/linux/syscalls_api.h:1:
In file included from include/linux/syscalls.h:96:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:10:
In file included from include/linux/perf_event.h:53:
In file included from include/linux/security.h:35:
include/linux/bpf.h:1550:51: warning: declaration of 'struct bpf_tramp_link' will not be visible outside of this function [-Wvisibility]
1550 | static inline int bpf_trampoline_link_prog(struct bpf_tramp_link *link,
| ^
include/linux/bpf.h:1556:53: warning: declaration of 'struct bpf_tramp_link' will not be visible outside of this function [-Wvisibility]
1556 | static inline int bpf_trampoline_unlink_prog(struct bpf_tramp_link *link,
| ^
In file included from kernel/sched/rq-offsets.c:5:
In file included from kernel/sched/sched.h:61:
In file included from include/linux/syscalls_api.h:1:
In file included from include/linux/syscalls.h:96:
In file included from include/trace/syscall.h:7:
>> include/linux/trace_events.h:834:5: warning: no previous prototype for function 'bpf_tracing_multi_attach' [-Wmissing-prototypes]
834 | int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
| ^
include/linux/trace_events.h:834:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
834 | int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
| ^
| static
3 warnings generated.
vim +/bpf_tracing_multi_attach +834 include/linux/trace_events.h
795
796 static inline int
797 perf_event_query_prog_array(struct perf_event *event, void __user *info)
798 {
799 return -EOPNOTSUPP;
800 }
801 struct bpf_raw_tp_link;
802 static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link)
803 {
804 return -EOPNOTSUPP;
805 }
806 static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_raw_tp_link *link)
807 {
808 return -EOPNOTSUPP;
809 }
810 static inline struct bpf_raw_event_map *bpf_get_raw_tracepoint(const char *name)
811 {
812 return NULL;
813 }
814 static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp)
815 {
816 }
817 static inline int bpf_get_perf_event_info(const struct perf_event *event,
818 u32 *prog_id, u32 *fd_type,
819 const char **buf, u64 *probe_offset,
820 u64 *probe_addr, unsigned long *missed)
821 {
822 return -EOPNOTSUPP;
823 }
824 static inline int
825 bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
826 {
827 return -EOPNOTSUPP;
828 }
829 static inline int
830 bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
831 {
832 return -EOPNOTSUPP;
833 }
> 834 int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
835 {
836 return -EOPNOTSUPP;
837 }
838 #endif
839
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-01-31 4:59 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=202601311253.RFAVL9Uf-lkp@intel.com \
--to=lkp@intel.com \
--cc=jolsa@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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.