public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Alexei Starovoitov <ast@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ast-bpf:uptr_v3 2/11] kernel/bpf/core.c:2975:12: warning: no previous prototype for function 'bpf_arena_get_user_vm_start'
Date: Mon, 29 Jan 2024 02:09:43 +0800	[thread overview]
Message-ID: <202401290217.5t5Cmgp3-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git uptr_v3
head:   545ce904000a1f553bc985000a0eee057b6c4847
commit: 35e094065b98d2f1e23592f3e65d4f8c6bc1863e [2/11] bpf: Introduce bpf arena.
config: arm-randconfig-003-20240128 (https://download.01.org/0day-ci/archive/20240129/202401290217.5t5Cmgp3-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240129/202401290217.5t5Cmgp3-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/202401290217.5t5Cmgp3-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> kernel/bpf/core.c:2975:12: warning: no previous prototype for function 'bpf_arena_get_user_vm_start' [-Wmissing-prototypes]
   __weak u64 bpf_arena_get_user_vm_start(struct bpf_arena *arena)
              ^
   kernel/bpf/core.c:2975:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
   __weak u64 bpf_arena_get_user_vm_start(struct bpf_arena *arena)
          ^
          static 
>> kernel/bpf/core.c:2979:12: warning: no previous prototype for function 'bpf_arena_get_kern_vm_start' [-Wmissing-prototypes]
   __weak u64 bpf_arena_get_kern_vm_start(struct bpf_arena *arena)
              ^
   kernel/bpf/core.c:2979:8: note: declare 'static' if the function is not intended to be used outside of this translation unit
   __weak u64 bpf_arena_get_kern_vm_start(struct bpf_arena *arena)
          ^
          static 
   2 warnings generated.


vim +/bpf_arena_get_user_vm_start +2975 kernel/bpf/core.c

  2972	
  2973	#ifndef CONFIG_MMU
  2974	__weak const struct bpf_map_ops arena_map_ops;
> 2975	__weak u64 bpf_arena_get_user_vm_start(struct bpf_arena *arena)
  2976	{
  2977		return 0;
  2978	}
> 2979	__weak u64 bpf_arena_get_kern_vm_start(struct bpf_arena *arena)
  2980	{
  2981		return 0;
  2982	}
  2983	#endif
  2984	

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

                 reply	other threads:[~2024-01-28 18:10 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=202401290217.5t5Cmgp3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ast@kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox