public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [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'
@ 2026-01-31  4:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-01-31  4:59 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-01-31  4:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-31  4:59 [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' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox