* kernel/bpf/helpers.c:1757:7: warning: no previous declaration for 'bpf_obj_new_impl'
@ 2023-08-16 15:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-16 15:01 UTC (permalink / raw)
To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all, linux-kernel, Alexei Starovoitov
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4853c74bd7ab7fdb83f319bd9ace8a08c031e9b6
commit: 958cf2e273f0929c66169e0788031310e8118722 bpf: Introduce bpf_obj_new
date: 9 months ago
config: x86_64-randconfig-x012-20230816 (https://download.01.org/0day-ci/archive/20230816/202308162255.nWBAw9u6-lkp@intel.com/config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce: (https://download.01.org/0day-ci/archive/20230816/202308162255.nWBAw9u6-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/202308162255.nWBAw9u6-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/bpf/helpers.c:1757:7: warning: no previous declaration for 'bpf_obj_new_impl' [-Wmissing-declarations]
void *bpf_obj_new_impl(u64 local_type_id__k, void *meta__ign)
^~~~~~~~~~~~~~~~
vim +/bpf_obj_new_impl +1757 kernel/bpf/helpers.c
1752
1753 __diag_push();
1754 __diag_ignore_all("-Wmissing-prototypes",
1755 "Global functions as their definitions will be in vmlinux BTF");
1756
> 1757 void *bpf_obj_new_impl(u64 local_type_id__k, void *meta__ign)
1758 {
1759 struct btf_struct_meta *meta = meta__ign;
1760 u64 size = local_type_id__k;
1761 void *p;
1762
1763 if (unlikely(!bpf_global_ma_set))
1764 return NULL;
1765 p = bpf_mem_alloc(&bpf_global_ma, size);
1766 if (!p)
1767 return NULL;
1768 if (meta)
1769 bpf_obj_init(meta->field_offs, p);
1770 return p;
1771 }
1772
--
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:[~2023-08-16 15:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16 15:01 kernel/bpf/helpers.c:1757:7: warning: no previous declaration for 'bpf_obj_new_impl' 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