All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Daniel Xu <dxu@dxuuu.xyz>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC bpf-next 06/13] bpf: Move kfunc definitions out of verifier.c
Date: Thu, 10 Apr 2025 13:37:09 +0800	[thread overview]
Message-ID: <202504101343.eRiCSJes-lkp@intel.com> (raw)
In-Reply-To: <c73f939de0f6af022e009dda057b6f941c6fce59.1744169424.git.dxu@dxuuu.xyz>

Hi Daniel,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

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

url:    https://github.com/intel-lab-lkp/linux/commits/Daniel-Xu/bpf-Move-bpf_prog_ctx_arg_info_init-body-into-header/20250409-114116
base:   https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
patch link:    https://lore.kernel.org/r/c73f939de0f6af022e009dda057b6f941c6fce59.1744169424.git.dxu%40dxuuu.xyz
patch subject: [RFC bpf-next 06/13] bpf: Move kfunc definitions out of verifier.c
config: arm64-randconfig-002-20250410 (https://download.01.org/0day-ci/archive/20250410/202504101343.eRiCSJes-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 92c93f5286b9ff33f27ff694d2dc33da1c07afdd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250410/202504101343.eRiCSJes-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504101343.eRiCSJes-lkp@intel.com/

All warnings (new ones prefixed by >>):

   kernel/bpf/core.c:320:9: error: call to undeclared function 'btf_distill_func_proto'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     320 |                 ret = btf_distill_func_proto(log, btf, t, tname, &tgt_info->fmodel);
         |                       ^
   kernel/bpf/core.c:339:7: error: call to undeclared function 'btf_check_type_match'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     339 |                     btf_check_type_match(log, prog, btf, t))
         |                     ^
   kernel/bpf/core.c:396:19: error: call to undeclared function 'btf_kfunc_is_modify_return'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     396 |                                         u32 *flags = btf_kfunc_is_modify_return(btf, btf_id,
         |                                                      ^
   kernel/bpf/core.c:396:11: error: incompatible integer to pointer conversion initializing 'u32 *' (aka 'unsigned int *') with an expression of type 'int' [-Wint-conversion]
     396 |                                         u32 *flags = btf_kfunc_is_modify_return(btf, btf_id,
         |                                              ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     397 |                                                                                 prog);
         |                                                                                 ~~~~~
   kernel/bpf/core.c:425:8: error: call to undeclared function 'btf_kfunc_is_modify_return'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     425 |                         if (btf_kfunc_is_modify_return(btf, btf_id, prog) ||
         |                             ^
   kernel/bpf/core.c:1638:33: error: use of undeclared identifier 'kfunc_desc_cmp_by_id_off'
    1638 |                        sizeof(tab->descs[0]), kfunc_desc_cmp_by_id_off);
         |                                               ^
>> kernel/bpf/core.c:1628:1: warning: no previous prototype for function 'find_kfunc_desc' [-Wmissing-prototypes]
    1628 | find_kfunc_desc(const struct bpf_prog *prog, u32 func_id, u16 offset)
         | ^
   kernel/bpf/core.c:1627:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
    1627 | const struct bpf_kfunc_desc *
         |       ^
         | static 
   kernel/bpf/core.c:1642:5: error: redefinition of 'bpf_get_kfunc_addr'
    1642 | int bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id,
         |     ^
   include/linux/bpf.h:3084:1: note: previous definition is here
    3084 | bpf_get_kfunc_addr(const struct bpf_prog *prog, u32 func_id,
         | ^
   1 warning and 7 errors generated.


vim +/find_kfunc_desc +1628 kernel/bpf/core.c

  1626	
  1627	const struct bpf_kfunc_desc *
> 1628	find_kfunc_desc(const struct bpf_prog *prog, u32 func_id, u16 offset)
  1629	{
  1630		struct bpf_kfunc_desc desc = {
  1631			.func_id = func_id,
  1632			.offset = offset,
  1633		};
  1634		struct bpf_kfunc_desc_tab *tab;
  1635	
  1636		tab = prog->aux->kfunc_tab;
  1637		return bsearch(&desc, tab->descs, tab->nr_descs,
  1638			       sizeof(tab->descs[0]), kfunc_desc_cmp_by_id_off);
  1639	}
  1640	EXPORT_SYMBOL_GPL(find_kfunc_desc);
  1641	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2025-04-10  5:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-09  3:33 [RFC bpf-next 00/13] bpf: Introduce modular verifier Daniel Xu
2025-04-09  3:33 ` [RFC bpf-next 01/13] bpf: Move bpf_prog_ctx_arg_info_init() body into header Daniel Xu
2025-04-09  3:33 ` [RFC bpf-next 02/13] bpf: Move BTF related globals out of verifier.c Daniel Xu
2025-04-09  3:33 ` [RFC bpf-next 03/13] bpf: Move percpu memory allocator definition into core Daniel Xu
2025-04-09  3:33 ` [RFC bpf-next 04/13] bpf: Move bpf_check_attach_target() to core Daniel Xu
2025-04-10  4:33   ` kernel test robot
2025-04-10  5:26   ` kernel test robot
2025-04-09  3:34 ` [RFC bpf-next 05/13] bpf: Remove map_set_for_each_callback_args callback for maps Daniel Xu
2025-04-09  3:34 ` [RFC bpf-next 06/13] bpf: Move kfunc definitions out of verifier.c Daniel Xu
2025-04-10  5:37   ` kernel test robot [this message]
2025-04-09  3:34 ` [RFC bpf-next 07/13] bpf: Make bpf_free_kfunc_btf_tab() static in core Daniel Xu
2025-04-09  3:34 ` [RFC bpf-next 08/13] selftests: bpf: Avoid attaching to bpf_check() Daniel Xu
2025-04-09  3:34 ` [RFC bpf-next 09/13] perf: Export perf_snapshot_branch_stack static key Daniel Xu
2025-04-09  3:34 ` [RFC bpf-next 10/13] bpf: verifier: Add indirection to kallsyms_lookup_name() Daniel Xu
2025-04-09 14:25   ` Stanislav Fomichev
2025-04-15  4:28     ` Daniel Xu
2025-04-09  3:34 ` [RFC bpf-next 11/13] treewide: bpf: Export symbols used by verifier Daniel Xu
2025-04-21 16:13   ` Alexei Starovoitov
2025-04-09  3:34 ` [RFC bpf-next 12/13] bpf: verifier: Make verifier loadable Daniel Xu
2025-04-09  3:34 ` [RFC bpf-next 13/13] bpf: Supporting building verifier.ko out-of-tree Daniel Xu

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=202504101343.eRiCSJes-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dxu@dxuuu.xyz \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.