Hi Joanne, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on bpf-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Joanne-Koong/Dynamic-pointers/20220402-100110 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20220402/202204021459.6f2G1oTF-lkp@xxxxxxxxx/config) compiler: powerpc-linux-gcc (GCC) 11.2.0 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 # https://github.com/intel-lab-lkp/linux/commit/64c5b9e2d2df7ff61dd8bd2e36a29ffff264e2ff git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Joanne-Koong/Dynamic-pointers/20220402-100110 git checkout 64c5b9e2d2df7ff61dd8bd2e36a29ffff264e2ff # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash kernel/bpf/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): kernel/bpf/ringbuf.c: In function '____bpf_ringbuf_reserve_dynptr': >> kernel/bpf/ringbuf.c:491:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 491 | sample = (void *)____bpf_ringbuf_reserve(map, size, flags); | ^ vim +491 kernel/bpf/ringbuf.c 478 479 BPF_CALL_4(bpf_ringbuf_reserve_dynptr, struct bpf_map *, map, u32, size, u64, flags, 480 struct bpf_dynptr_kern *, ptr) 481 { 482 void *sample; 483 int err; 484 485 err = bpf_dynptr_check_size(size); 486 if (err) { 487 bpf_dynptr_set_null(ptr); 488 return err; 489 } 490 > 491 sample = (void *)____bpf_ringbuf_reserve(map, size, flags); 492 493 if (!sample) { 494 bpf_dynptr_set_null(ptr); 495 return -EINVAL; 496 } 497 498 bpf_dynptr_init(ptr, sample, BPF_DYNPTR_TYPE_RINGBUF, 0, size); 499 500 return 0; 501 } 502 -- 0-DAY CI Kernel Test Service https://01.org/lkp