Hi Kumar, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Kumar-Kartikeya-Dwivedi/Introduce-unstable-CT-lookup-helpers/20211030-224748 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: arm-randconfig-r006-20211028 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d321548c3ce987f4f21350ba1c81fdb5d4354224) 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/b6df0d58a8ac487b5c4c3290b9599dac88888516 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Kumar-Kartikeya-Dwivedi/Introduce-unstable-CT-lookup-helpers/20211030-224748 git checkout b6df0d58a8ac487b5c4c3290b9599dac88888516 # save the attached .config 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 kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from kernel/bpf/core.c:27: >> include/linux/btf.h:307:1: error: expected identifier or '(' { ^ kernel/bpf/core.c:1359:12: warning: no previous prototype for function 'bpf_probe_read_kernel' [-Wmissing-prototypes] u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr) ^ kernel/bpf/core.c:1359:1: note: declare 'static' if the function is not intended to be used outside of this translation unit u64 __weak bpf_probe_read_kernel(void *dst, u32 size, const void *unsafe_ptr) ^ static 1 warning and 1 error generated. -- In file included from kernel/bpf/syscall.c:7: In file included from include/linux/bpf_verifier.h:8: >> include/linux/btf.h:307:1: error: expected identifier or '(' { ^ 1 error generated. vim +307 include/linux/btf.h 259 260 #ifdef CONFIG_DEBUG_INFO_BTF_MODULES 261 void register_kfunc_btf_id_set(struct kfunc_btf_id_list *l, 262 struct kfunc_btf_id_set *s); 263 void unregister_kfunc_btf_id_set(struct kfunc_btf_id_list *l, 264 struct kfunc_btf_id_set *s); 265 bool bpf_check_mod_kfunc_call(struct kfunc_btf_id_list *klist, u32 kfunc_id, 266 struct module *owner); 267 bool bpf_is_mod_acquire_kfunc(struct kfunc_btf_id_list *klist, u32 kfunc_id, 268 struct module *owner); 269 bool bpf_is_mod_release_kfunc(struct kfunc_btf_id_list *klist, u32 kfunc_id, 270 struct module *owner); 271 enum bpf_return_type bpf_get_mod_kfunc_return_type(struct kfunc_btf_id_list *klist, 272 u32 kfunc_btf_id, struct module *owner); 273 int bpf_btf_mod_struct_access(struct kfunc_btf_id_list *klist, 274 struct module *owner, 275 struct bpf_verifier_log *log, 276 const struct btf *btf, 277 const struct btf_type *t, int off, 278 int size, enum bpf_access_type atype, 279 u32 *next_btf_id); 280 #else 281 static inline void register_kfunc_btf_id_set(struct kfunc_btf_id_list *l, 282 struct kfunc_btf_id_set *s) 283 { 284 } 285 static inline void unregister_kfunc_btf_id_set(struct kfunc_btf_id_list *l, 286 struct kfunc_btf_id_set *s) 287 { 288 } 289 static inline bool bpf_check_mod_kfunc_call(struct kfunc_btf_id_list *klist, 290 u32 kfunc_id, struct module *owner) 291 { 292 return false; 293 } 294 static inline bool bpf_is_mod_acquire_kfunc(struct kfunc_btf_id_list *klist, 295 u32 kfunc_id, struct module *owner) 296 { 297 return false; 298 } 299 static inline bool bpf_is_mod_release_kfunc(struct kfunc_btf_id_list *klist, 300 u32 kfunc_id, struct module *owner) 301 { 302 return false; 303 } 304 static inline enum bpf_return_type 305 bpf_get_mod_kfunc_return_type(struct kfunc_btf_id_list *klist, u32 kfunc_btf_id, 306 struct module *owner); > 307 { 308 return __BPF_RET_TYPE_MAX; 309 } 310 static inline int bpf_btf_mod_struct_access(struct kfunc_btf_id_list *klist, 311 struct module *owner, 312 struct bpf_verifier_log *log, 313 const struct btf *btf, 314 const struct btf_type *t, int off, 315 int size, enum bpf_access_type atype, 316 u32 *next_btf_id) 317 { 318 return __BPF_REG_TYPE_MAX; 319 } 320 #endif 321 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org