Hi Alan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on bpf-next/master]
url:
https://github.com/0day-ci/linux/commits/Alan-Maguire/bpf-printk-add-BTF-...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
1d4c87335d5236ea1f35937e1014980ba961ae34)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> kernel/bpf/btf.c:5269:6: warning: no previous prototype for
function 'btf_type_show' [-Wmissing-prototypes]
void btf_type_show(const
struct btf *btf, u32 type_id, void *obj,
^
kernel/bpf/btf.c:5269:1: note: declare 'static' if the function is not intended
to be used outside of this translation unit
void btf_type_show(const struct btf *btf, u32 type_id, void *obj,
^
static
1 warning generated.
vim +/btf_type_show +5269 kernel/bpf/btf.c
5268
5269 void btf_type_show(const struct btf *btf, u32 type_id, void
*obj,
5270 struct btf_show *show)
5271 {
5272 const struct btf_type *t = btf_type_by_id(btf, type_id);
5273
5274 show->btf = btf;
5275 memset(&show->state, 0, sizeof(show->state));
5276 memset(&show->obj, 0, sizeof(show->obj));
5277
5278 btf_type_ops(t)->show(btf, t, type_id, obj, 0, show);
5279 }
5280
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org