public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [ast-bpf:uptr_v3 2/11] kernel/bpf/core.c:2975:12: warning: no previous prototype for function 'bpf_arena_get_user_vm_start'
@ 2024-01-28 18:09 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-28 18:09 UTC (permalink / raw)
  To: Alexei Starovoitov; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-28 18:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-28 18:09 [ast-bpf:uptr_v3 2/11] kernel/bpf/core.c:2975:12: warning: no previous prototype for function 'bpf_arena_get_user_vm_start' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox