lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202202150707.pEsVvhSW-lkp@intel.com>
Date:   Tue, 15 Feb 2022 07:17:09 +0800
From:   kernel test robot <lkp@...el.com>
To:     Jiri Olsa <jolsa@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Masami Hiramatsu <mhiramat@...nel.org>
Subject: [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

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@...el.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ