mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Toke Høiland-Jørgensen" <toke@redhat.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [toke:xdp-traffic-gen-01 4/5] net/bpf/test_run.c:117: undefined reference to `page_pool_task_get'
Date: Tue, 16 Nov 2021 23:41:52 +0800	[thread overview]
Message-ID: <202111162342.qMNRkwoi-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-traffic-gen-01
head:   3aaa72cb5c608f64b941ccc8d69caff51e89f67a
commit: f0b693d10bc20904d60329b0a202d0aa2c666e8d [4/5] bpf: Add XDP_REDIRECT support to XDP for bpf_prog_run()
config: x86_64-randconfig-a013-20211116 (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/toke/linux.git/commit/?id=f0b693d10bc20904d60329b0a202d0aa2c666e8d
        git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
        git fetch --no-tags toke xdp-traffic-gen-01
        git checkout f0b693d10bc20904d60329b0a202d0aa2c666e8d
        # save the attached .config to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=x86_64 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 >>):

   vmlinux.o: warning: objtool: do_machine_check()+0x6d1: call to queue_task_work() leaves .noinstr.text section
   vmlinux.o: warning: objtool: enter_from_user_mode()+0x4e: call to on_thread_stack() leaves .noinstr.text section
   vmlinux.o: warning: objtool: syscall_enter_from_user_mode()+0x53: call to on_thread_stack() leaves .noinstr.text section
   vmlinux.o: warning: objtool: syscall_enter_from_user_mode_prepare()+0x4e: call to on_thread_stack() leaves .noinstr.text section
   vmlinux.o: warning: objtool: irqentry_enter_from_user_mode()+0x4e: call to on_thread_stack() leaves .noinstr.text section
   ld: net/bpf/test_run.o: in function `bpf_test_run_xdp_init':
>> net/bpf/test_run.c:117: undefined reference to `page_pool_task_get'


vim +117 net/bpf/test_run.c

   111	
   112	static int bpf_test_run_xdp_init(struct bpf_test_timer *t,
   113					 struct bpf_prog *prog, struct xdp_buff *orig_ctx)
   114	{
   115		struct page_pool *pp;
   116	
 > 117		pp = page_pool_task_get(current);
   118		if (IS_ERR(pp))
   119			return PTR_ERR(pp);
   120	
   121		t->xdp.pp = pp;
   122	
   123		/* We create a 'fake' RXQ referencing the original dev, but with an
   124		 * xdp_mem_info pointing to our page_pool
   125		 */
   126		xdp_rxq_info_reg(&t->xdp.rxq, orig_ctx->rxq->dev, 0, 0);
   127		t->xdp.rxq.mem.type = MEM_TYPE_PAGE_POOL;
   128		t->xdp.rxq.mem.id = pp->xdp_mem_id;
   129	
   130		return 0;
   131	}
   132	

---
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: 33923 bytes --]

                 reply	other threads:[~2021-11-16 15:43 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=202111162342.qMNRkwoi-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=toke@redhat.com \
    /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®