All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH RFC bpf-next v1 5/6] net: netfilter: Add unstable CT lookup helper for XDP and TC-BPF
Date: Sun, 31 Oct 2021 00:44:16 +0800	[thread overview]
Message-ID: <202110310023.bjs0yWFS-lkp@intel.com> (raw)
In-Reply-To: <20211030144609.263572-6-memxor@gmail.com>

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

Hi Kumar,

[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on bpf-next/master]

url:    https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-Dwivedi/Introduce-unstable-CT-lookup-helpers/20211030-224748
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: ia64-defconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 11.2.0
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://github.com/0day-ci/linux/commit/f52e281f642e94cd13ce3dee075b76a562f22531
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Kumar-Kartikeya-Dwivedi/Introduce-unstable-CT-lookup-helpers/20211030-224748
        git checkout f52e281f642e94cd13ce3dee075b76a562f22531
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash net/core/

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 net/core/filter.c:50:
   include/linux/btf.h:307:1: error: expected identifier or '(' before '{' token
     307 | {
         | ^
   net/core/filter.c: In function 'xdp_btf_struct_access':
   net/core/filter.c:10012:24: error: implicit declaration of function 'btf_struct_access'; did you mean 'xdp_btf_struct_access'? [-Werror=implicit-function-declaration]
   10012 |                 return btf_struct_access(log, btf, t, off, size, atype, next_btf_id);
         |                        ^~~~~~~~~~~~~~~~~
         |                        xdp_btf_struct_access
   In file included from net/core/filter.c:50:
   net/core/filter.c: At top level:
>> include/linux/btf.h:305:1: warning: 'bpf_get_mod_kfunc_return_type' used but never defined
     305 | bpf_get_mod_kfunc_return_type(struct kfunc_btf_id_list *klist, u32 kfunc_btf_id,
         | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/bpf_get_mod_kfunc_return_type +305 include/linux/btf.h

14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  259  
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  260  #ifdef CONFIG_DEBUG_INFO_BTF_MODULES
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  261  void register_kfunc_btf_id_set(struct kfunc_btf_id_list *l,
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  262  			       struct kfunc_btf_id_set *s);
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  263  void unregister_kfunc_btf_id_set(struct kfunc_btf_id_list *l,
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  264  				 struct kfunc_btf_id_set *s);
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  265  bool bpf_check_mod_kfunc_call(struct kfunc_btf_id_list *klist, u32 kfunc_id,
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  266  			      struct module *owner);
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  267  bool bpf_is_mod_acquire_kfunc(struct kfunc_btf_id_list *klist, u32 kfunc_id,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  268  			      struct module *owner);
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  269  bool bpf_is_mod_release_kfunc(struct kfunc_btf_id_list *klist, u32 kfunc_id,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  270  			      struct module *owner);
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  271  enum bpf_return_type bpf_get_mod_kfunc_return_type(struct kfunc_btf_id_list *klist,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  272  						   u32 kfunc_btf_id, struct module *owner);
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  273  int bpf_btf_mod_struct_access(struct kfunc_btf_id_list *klist,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  274  			      struct module *owner,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  275  			      struct bpf_verifier_log *log,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  276  			      const struct btf *btf,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  277  			      const struct btf_type *t, int off,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  278  			      int size, enum bpf_access_type atype,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  279  			      u32 *next_btf_id);
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  280  #else
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  281  static inline void register_kfunc_btf_id_set(struct kfunc_btf_id_list *l,
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  282  					     struct kfunc_btf_id_set *s)
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  283  {
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  284  }
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  285  static inline void unregister_kfunc_btf_id_set(struct kfunc_btf_id_list *l,
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  286  					       struct kfunc_btf_id_set *s)
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  287  {
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  288  }
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  289  static inline bool bpf_check_mod_kfunc_call(struct kfunc_btf_id_list *klist,
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  290  					    u32 kfunc_id, struct module *owner)
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  291  {
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  292  	return false;
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  293  }
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  294  static inline bool bpf_is_mod_acquire_kfunc(struct kfunc_btf_id_list *klist,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  295  					    u32 kfunc_id, struct module *owner)
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  296  {
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  297  	return false;
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  298  }
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  299  static inline bool bpf_is_mod_release_kfunc(struct kfunc_btf_id_list *klist,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  300  					    u32 kfunc_id, struct module *owner)
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  301  {
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  302  	return false;
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  303  }
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  304  static inline enum bpf_return_type
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30 @305  bpf_get_mod_kfunc_return_type(struct kfunc_btf_id_list *klist, u32 kfunc_btf_id,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  306  			      struct module *owner);
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  307  {
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  308  	return __BPF_RET_TYPE_MAX;
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  309  }
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  310  static inline int bpf_btf_mod_struct_access(struct kfunc_btf_id_list *klist,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  311  					    struct module *owner,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  312  					    struct bpf_verifier_log *log,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  313  					    const struct btf *btf,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  314  					    const struct btf_type *t, int off,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  315  					    int size, enum bpf_access_type atype,
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  316  					    u32 *next_btf_id)
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  317  {
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  318  	return __BPF_REG_TYPE_MAX;
b6df0d58a8ac48 Kumar Kartikeya Dwivedi 2021-10-30  319  }
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  320  #endif
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  321  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 19973 bytes --]

  reply	other threads:[~2021-10-30 16:44 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 14:46 [PATCH RFC bpf-next v1 0/6] Introduce unstable CT lookup helpers Kumar Kartikeya Dwivedi
2021-10-30 14:46 ` [PATCH RFC bpf-next v1 1/6] bpf: Refactor bpf_check_mod_kfunc_call Kumar Kartikeya Dwivedi
2021-10-30 14:46 ` [PATCH RFC bpf-next v1 2/6] bpf: Remove DEFINE_KFUNC_BTF_ID_SET Kumar Kartikeya Dwivedi
2021-10-30 14:46 ` [PATCH RFC bpf-next v1 3/6] bpf: Extend kfunc with PTR_TO_CTX and PTR_TO_MEM arguments Kumar Kartikeya Dwivedi
2021-10-30 14:46 ` [PATCH RFC bpf-next v1 4/6] bpf: Add reference tracking support to kfunc returned PTR_TO_BTF_ID Kumar Kartikeya Dwivedi
2021-10-30 18:28   ` kernel test robot
2021-10-30 18:28     ` kernel test robot
2021-10-30 14:46 ` [PATCH RFC bpf-next v1 5/6] net: netfilter: Add unstable CT lookup helper for XDP and TC-BPF Kumar Kartikeya Dwivedi
2021-10-30 16:44   ` kernel test robot [this message]
2021-10-30 17:27   ` kernel test robot
2021-10-31 19:10   ` Florian Westphal
2021-11-01 19:49     ` Toke Høiland-Jørgensen
2021-11-02 20:43       ` Florian Westphal
2021-11-05 20:48         ` Kumar Kartikeya Dwivedi
2021-11-02 23:19     ` Alexei Starovoitov
2021-10-30 14:46 ` [PATCH RFC bpf-next v1 6/6] selftests/bpf: Add referenced PTR_TO_BTF_ID selftest Kumar Kartikeya Dwivedi
2021-11-02 23:16 ` [PATCH RFC bpf-next v1 0/6] Introduce unstable CT lookup helpers Alexei Starovoitov
2021-11-04 12:55   ` Kumar Kartikeya Dwivedi
2021-11-05 20:49     ` Alexei Starovoitov
2021-11-05 21:13       ` Kumar Kartikeya Dwivedi
2021-11-06 18:13         ` Alexei Starovoitov
2021-11-07 15:44           ` Kumar Kartikeya Dwivedi

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=202110310023.bjs0yWFS-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.