From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org,
Masami Hiramatsu <mhiramat@kernel.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
Date: Tue, 15 Feb 2022 07:17:09 +0800 [thread overview]
Message-ID: <202202150707.pEsVvhSW-lkp@intel.com> (raw)
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
reply other threads:[~2022-02-14 23:17 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=202202150707.pEsVvhSW-lkp@intel.com \
--to=lkp@intel.com \
--cc=jolsa@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mhiramat@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox