mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [jolsa-perf:bpf/batch 17/29] kernel/bpf/trampoline.c:118: undefined reference to `bpf_check_attach_target'
@ 2021-11-19  3:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-19  3:39 UTC (permalink / raw)
  To: Jiri Olsa; +Cc: kbuild-all, linux-kernel

[-- 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 --]

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

only message in thread, other threads:[~2021-11-19  3:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  3:39 [jolsa-perf:bpf/batch 17/29] kernel/bpf/trampoline.c:118: undefined reference to `bpf_check_attach_target' 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

all inboxes | Powered by JetHome®