From: kernel test robot <lkp@intel.com>
To: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Alexei Starovoitov <ast@kernel.org>
Subject: kernel/bpf/helpers.c:1757:7: warning: no previous declaration for 'bpf_obj_new_impl'
Date: Wed, 16 Aug 2023 23:01:08 +0800 [thread overview]
Message-ID: <202308162255.nWBAw9u6-lkp@intel.com> (raw)
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
reply other threads:[~2023-08-16 15:03 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=202308162255.nWBAw9u6-lkp@intel.com \
--to=lkp@intel.com \
--cc=ast@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=memxor@gmail.com \
--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