From: kernel test robot <lkp@intel.com>
To: Jiri Olsa <jolsa@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [jolsa-perf:bpf/batch 17/29] kernel/bpf/trampoline.c:118: undefined reference to `bpf_check_attach_target'
Date: Fri, 19 Nov 2021 11:39:14 +0800 [thread overview]
Message-ID: <202111191102.WyTV60HI-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2384 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git bpf/batch
head: 5f1f613266bf58f8424a93e1f8b99c4ac8fa6c2b
commit: 12ea728e52b0432131a800281f2015a7358b3d81 [17/29] bpf: Resolve id in bpf_tramp_id_single
config: i386-randconfig-c023-20211118 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/commit/?id=12ea728e52b0432131a800281f2015a7358b3d81
git remote add jolsa-perf https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
git fetch --no-tags jolsa-perf bpf/batch
git checkout 12ea728e52b0432131a800281f2015a7358b3d81
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
ld: kernel/bpf/trampoline.o: in function `bpf_tramp_id_single':
>> kernel/bpf/trampoline.c:118: undefined reference to `bpf_check_attach_target'
>> ld: kernel/bpf/trampoline.c:129: undefined reference to `btf_obj_id'
ld: kernel/bpf/trampoline.o: in function `bpf_tramp_attach':
kernel/bpf/trampoline.c:644: undefined reference to `bpf_check_attach_model'
vim +118 kernel/bpf/trampoline.c
106
107 struct bpf_tramp_id *bpf_tramp_id_single(const struct bpf_prog *tgt_prog,
108 struct bpf_prog *prog, u32 btf_id,
109 struct bpf_attach_target_info *tgt_info)
110 {
111 struct bpf_tramp_id *id;
112
113 if (!tgt_info) {
114 struct bpf_attach_target_info __tgt_info = {};
115 int err;
116
117 tgt_info = &__tgt_info;
> 118 err = bpf_check_attach_target(NULL, prog, tgt_prog, btf_id,
119 tgt_info);
120 if (err)
121 return ERR_PTR(err);
122 }
123 id = bpf_tramp_id_alloc(1);
124 if (!id)
125 return ERR_PTR(-ENOMEM);
126 if (tgt_prog)
127 id->obj_id = tgt_prog->aux->id;
128 else
> 129 id->obj_id = btf_obj_id(prog->aux->attach_btf);
130 id->id[0] = btf_id;
131 id->addr[0] = (void *) tgt_info->tgt_addr;
132 id->cnt = 1;
133 return id;
134 }
135
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34716 bytes --]
reply other threads:[~2021-11-19 3:39 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=202111191102.WyTV60HI-lkp@intel.com \
--to=lkp@intel.com \
--cc=jolsa@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.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
all inboxes | Powered by JetHome®