All of lore.kernel.org
 help / color / mirror / Atom feed
* [jolsa-perf:bpf/fprobe_link_6 3/11] include/linux/trace_events.h:781:47: warning: declaration of 'union bpf_attr' will not be visible outside of this function
@ 2022-02-14 23:17 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-14 23:17 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: llvm, kbuild-all, linux-kernel, Masami Hiramatsu

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/fprobe_link_6
head:   bb2f8cf233977d40c029e2f718e95f637980e350
commit: 00327b2f7c60bd84d8c5e887003987b2e688d159 [3/11] bpf: Add support to attach kprobe program with fprobe
config: hexagon-randconfig-r041-20220214 (https://download.01.org/0day-ci/archive/20220215/202202150707.pEsVvhSW-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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=00327b2f7c60bd84d8c5e887003987b2e688d159
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/fprobe_link_6
        git checkout 00327b2f7c60bd84d8c5e887003987b2e688d159
        # 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=hexagon SHELL=/bin/bash drivers/base/

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 >>):

   In file included from drivers/base/syscore.c:12:
   In file included from include/trace/events/power.h:12:
>> include/linux/trace_events.h:781:47: warning: declaration of 'union bpf_attr' will not be visible outside of this function [-Wvisibility]
   static int bpf_fprobe_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
                                                 ^
   include/linux/trace_events.h:781:12: warning: unused function 'bpf_fprobe_link_attach' [-Wunused-function]
   static int bpf_fprobe_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
              ^
   2 warnings generated.


vim +781 include/linux/trace_events.h

   753	
   754	static inline int
   755	perf_event_query_prog_array(struct perf_event *event, void __user *info)
   756	{
   757		return -EOPNOTSUPP;
   758	}
   759	static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p)
   760	{
   761		return -EOPNOTSUPP;
   762	}
   763	static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p)
   764	{
   765		return -EOPNOTSUPP;
   766	}
   767	static inline struct bpf_raw_event_map *bpf_get_raw_tracepoint(const char *name)
   768	{
   769		return NULL;
   770	}
   771	static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp)
   772	{
   773	}
   774	static inline int bpf_get_perf_event_info(const struct perf_event *event,
   775						  u32 *prog_id, u32 *fd_type,
   776						  const char **buf, u64 *probe_offset,
   777						  u64 *probe_addr)
   778	{
   779		return -EOPNOTSUPP;
   780	}
 > 781	static int bpf_fprobe_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
   782	{
   783		return -EOPNOTSUPP;
   784	}
   785	#endif
   786	

---
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:bpf/fprobe_link_6 3/11] include/linux/trace_events.h:781:47: warning: declaration of 'union bpf_attr' will not be visible outside of this function
@ 2022-02-14 23:17 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2022-02-14 23:17 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3298 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/fprobe_link_6
head:   bb2f8cf233977d40c029e2f718e95f637980e350
commit: 00327b2f7c60bd84d8c5e887003987b2e688d159 [3/11] bpf: Add support to attach kprobe program with fprobe
config: hexagon-randconfig-r041-20220214 (https://download.01.org/0day-ci/archive/20220215/202202150707.pEsVvhSW-lkp(a)intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project ea071884b0cc7210b3cc5fe858f0e892a779a23b)
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=00327b2f7c60bd84d8c5e887003987b2e688d159
        git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
        git fetch --no-tags jolsa-perf bpf/fprobe_link_6
        git checkout 00327b2f7c60bd84d8c5e887003987b2e688d159
        # 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=hexagon SHELL=/bin/bash drivers/base/

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 >>):

   In file included from drivers/base/syscore.c:12:
   In file included from include/trace/events/power.h:12:
>> include/linux/trace_events.h:781:47: warning: declaration of 'union bpf_attr' will not be visible outside of this function [-Wvisibility]
   static int bpf_fprobe_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
                                                 ^
   include/linux/trace_events.h:781:12: warning: unused function 'bpf_fprobe_link_attach' [-Wunused-function]
   static int bpf_fprobe_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
              ^
   2 warnings generated.


vim +781 include/linux/trace_events.h

   753	
   754	static inline int
   755	perf_event_query_prog_array(struct perf_event *event, void __user *info)
   756	{
   757		return -EOPNOTSUPP;
   758	}
   759	static inline int bpf_probe_register(struct bpf_raw_event_map *btp, struct bpf_prog *p)
   760	{
   761		return -EOPNOTSUPP;
   762	}
   763	static inline int bpf_probe_unregister(struct bpf_raw_event_map *btp, struct bpf_prog *p)
   764	{
   765		return -EOPNOTSUPP;
   766	}
   767	static inline struct bpf_raw_event_map *bpf_get_raw_tracepoint(const char *name)
   768	{
   769		return NULL;
   770	}
   771	static inline void bpf_put_raw_tracepoint(struct bpf_raw_event_map *btp)
   772	{
   773	}
   774	static inline int bpf_get_perf_event_info(const struct perf_event *event,
   775						  u32 *prog_id, u32 *fd_type,
   776						  const char **buf, u64 *probe_offset,
   777						  u64 *probe_addr)
   778	{
   779		return -EOPNOTSUPP;
   780	}
 > 781	static int bpf_fprobe_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
   782	{
   783		return -EOPNOTSUPP;
   784	}
   785	#endif
   786	

---
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-02-14 23:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 23:17 [jolsa-perf:bpf/fprobe_link_6 3/11] include/linux/trace_events.h:781:47: warning: declaration of 'union bpf_attr' will not be visible outside of this function kernel test robot
2022-02-14 23:17 ` 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.