Hi Usama, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Usama-Arif/bpf-Introduce-module-helper-functions/20220122-034203 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: arm-spear3xx_defconfig (https://download.01.org/0day-ci/archive/20220122/202201220614.duEAa9pD-lkp@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce) 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 arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # https://github.com/0day-ci/linux/commit/ca60b90025819a8a03818e86e2105bd15576d134 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Usama-Arif/bpf-Introduce-module-helper-functions/20220122-034203 git checkout ca60b90025819a8a03818e86e2105bd15576d134 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash net/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from net/core/filter.c:50: >> include/linux/btf.h:391:5: warning: no previous prototype for function 'register_mod_helper' [-Wmissing-prototypes] int register_mod_helper(struct btf_mod_helper *mod_helper) ^ include/linux/btf.h:391:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int register_mod_helper(struct btf_mod_helper *mod_helper) ^ static >> include/linux/btf.h:395:5: warning: no previous prototype for function 'unregister_mod_helper' [-Wmissing-prototypes] int unregister_mod_helper(struct btf_mod_helper *mod_helper) ^ include/linux/btf.h:395:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int unregister_mod_helper(struct btf_mod_helper *mod_helper) ^ static >> include/linux/btf.h:399:30: warning: no previous prototype for function 'get_mod_helper_proto' [-Wmissing-prototypes] const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf, ^ include/linux/btf.h:399:7: note: declare 'static' if the function is not intended to be used outside of this translation unit const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf, ^ static 3 warnings generated. vim +/register_mod_helper +391 include/linux/btf.h 373 374 #ifdef CONFIG_DEBUG_INFO_BTF_MODULES 375 int register_mod_helper(struct btf_mod_helper *mod_helper); 376 int unregister_mod_helper(struct btf_mod_helper *mod_helper); 377 const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf, 378 const u32 kfunc_btf_id); 379 380 #define DEFINE_MOD_HELPER(mod_helper, owner, helper_func, func_proto) \ 381 BTF_SET_START(helper_func##__id_set) \ 382 BTF_ID(func, helper_func) \ 383 BTF_SET_END(helper_func##__id_set) \ 384 struct btf_mod_helper mod_helper = { \ 385 LIST_HEAD_INIT(mod_helper.list), \ 386 (owner), \ 387 (&(helper_func##__id_set)), \ 388 (&(func_proto)) \ 389 } 390 #else > 391 int register_mod_helper(struct btf_mod_helper *mod_helper) 392 { 393 return -EPERM; 394 } > 395 int unregister_mod_helper(struct btf_mod_helper *mod_helper) 396 { 397 return -EPERM; 398 } > 399 const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf, 400 const u32 kfunc_btf_id) 401 { 402 return NULL; 403 } 404 #endif 405 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org