BPF List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andrii Nakryiko <andriin@fb.com>,
	bpf@vger.kernel.org, netdev@vger.kernel.org, ast@fb.com,
	daniel@iogearbox.net, dsahern@gmail.com
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
	andrii.nakryiko@gmail.com, kernel-team@fb.com,
	Andrii Nakryiko <andriin@fb.com>, Andrey Ignatov <rdna@fb.com>,
	Takshak Chahande <ctakshak@fb.com>
Subject: Re: [PATCH v2 bpf-next 3/8] bpf, xdp: add bpf_link-based XDP attachment API
Date: Tue, 14 Jul 2020 14:39:46 +0800	[thread overview]
Message-ID: <202007141403.f8tW3jcQ%lkp@intel.com> (raw)
In-Reply-To: <20200714040643.1135876-4-andriin@fb.com>

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

Hi Andrii,

I love your patch! Yet something to improve:

[auto build test ERROR on bpf-next/master]

url:    https://github.com/0day-ci/linux/commits/Andrii-Nakryiko/BPF-XDP-link/20200714-120909
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-defconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
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
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

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 >>):

>> net/core/dev.c:8717:18: error: field has incomplete type 'struct bpf_link'
           struct bpf_link link;
                           ^
   include/net/netns/bpf.h:15:9: note: forward declaration of 'struct bpf_link'
           struct bpf_link *links[MAX_NETNS_BPF_ATTACH_TYPE];
                  ^
>> net/core/dev.c:8992:34: error: variable has incomplete type 'const struct bpf_link_ops'
   static const struct bpf_link_ops bpf_xdp_link_lops = {
                                    ^
   net/core/dev.c:8992:21: note: forward declaration of 'struct bpf_link_ops'
   static const struct bpf_link_ops bpf_xdp_link_lops = {
                       ^
>> net/core/dev.c:9000:25: error: variable has incomplete type 'struct bpf_link_primer'
           struct bpf_link_primer link_primer;
                                  ^
   net/core/dev.c:9000:9: note: forward declaration of 'struct bpf_link_primer'
           struct bpf_link_primer link_primer;
                  ^
>> net/core/dev.c:9015:2: error: implicit declaration of function 'bpf_link_init' [-Werror,-Wimplicit-function-declaration]
           bpf_link_init(&link->link, BPF_LINK_TYPE_XDP, &bpf_xdp_link_lops, prog);
           ^
   net/core/dev.c:9015:2: note: did you mean 'bio_list_init'?
   include/linux/bio.h:575:20: note: 'bio_list_init' declared here
   static inline void bio_list_init(struct bio_list *bl)
                      ^
>> net/core/dev.c:9019:8: error: implicit declaration of function 'bpf_link_prime' [-Werror,-Wimplicit-function-declaration]
           err = bpf_link_prime(&link->link, &link_primer);
                 ^
   net/core/dev.c:9019:8: note: did you mean 'bpf_link_init'?
   net/core/dev.c:9015:2: note: 'bpf_link_init' declared here
           bpf_link_init(&link->link, BPF_LINK_TYPE_XDP, &bpf_xdp_link_lops, prog);
           ^
>> net/core/dev.c:9030:3: error: implicit declaration of function 'bpf_link_cleanup' [-Werror,-Wimplicit-function-declaration]
                   bpf_link_cleanup(&link_primer);
                   ^
   net/core/dev.c:9030:3: note: did you mean 'tcf_idr_cleanup'?
   include/net/act_api.h:171:6: note: 'tcf_idr_cleanup' declared here
   void tcf_idr_cleanup(struct tc_action_net *tn, u32 index);
        ^
>> net/core/dev.c:9034:7: error: implicit declaration of function 'bpf_link_settle' [-Werror,-Wimplicit-function-declaration]
           fd = bpf_link_settle(&link_primer);
                ^
   7 errors generated.

vim +8717 net/core/dev.c

  8715	
  8716	struct bpf_xdp_link {
> 8717		struct bpf_link link;
  8718		struct net_device *dev; /* protected by rtnl_lock, no refcnt held */
  8719		int flags;
  8720	};
  8721	

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

  reply	other threads:[~2020-07-14  6:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14  4:06 [PATCH v2 bpf-next 0/8] BPF XDP link Andrii Nakryiko
2020-07-14  4:06 ` [PATCH v2 bpf-next 1/8] bpf, xdp: maintain info on attached XDP BPF programs in net_device Andrii Nakryiko
2020-07-14  4:06 ` [PATCH v2 bpf-next 2/8] bpf, xdp: extract commong XDP program attachment logic Andrii Nakryiko
2020-07-14  4:06 ` [PATCH v2 bpf-next 3/8] bpf, xdp: add bpf_link-based XDP attachment API Andrii Nakryiko
2020-07-14  6:39   ` kernel test robot [this message]
2020-07-14 18:39     ` Andrii Nakryiko
2020-07-14  4:06 ` [PATCH v2 bpf-next 4/8] bpf, xdp: implement LINK_UPDATE for BPF XDP link Andrii Nakryiko
2020-07-14  5:42   ` kernel test robot
2020-07-14  5:48   ` kernel test robot
2020-07-14  4:06 ` [PATCH v2 bpf-next 5/8] bpf: implement BPF XDP link-specific introspection APIs Andrii Nakryiko
2020-07-14  4:06 ` [PATCH v2 bpf-next 6/8] libbpf: add support for BPF XDP link Andrii Nakryiko
2020-07-14  4:06 ` [PATCH v2 bpf-next 7/8] selftests/bpf: add BPF XDP link selftests Andrii Nakryiko
2020-07-14  4:06 ` [PATCH v2 bpf-next 8/8] bpf, xdp: remove XDP_QUERY_PROG and XDP_QUERY_PROG_HW XDP commands Andrii Nakryiko

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=202007141403.f8tW3jcQ%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrii.nakryiko@gmail.com \
    --cc=andriin@fb.com \
    --cc=ast@fb.com \
    --cc=bpf@vger.kernel.org \
    --cc=clang-built-linux@googlegroups.com \
    --cc=ctakshak@fb.com \
    --cc=daniel@iogearbox.net \
    --cc=dsahern@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kernel-team@fb.com \
    --cc=netdev@vger.kernel.org \
    --cc=rdna@fb.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