Hi Xuan, Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Xuan-Zhuo/virtio-net-support-xdp-socket-zero-copy-xmit/20210331-151437 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 28110056f2d07a576ca045a38f80de051b13582a config: i386-randconfig-r023-20210330 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/2f0c0d42a79523eef5e0ab4407ff99d94607603e git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Xuan-Zhuo/virtio-net-support-xdp-socket-zero-copy-xmit/20210331-151437 git checkout 2f0c0d42a79523eef5e0ab4407ff99d94607603e # save the attached .config to linux build tree make W=1 ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <l...@intel.com> All warnings (new ones prefixed by >>): drivers/net/virtio_net.c: In function 'xsk_to_ptr': >> drivers/net/virtio_net.c:297:9: warning: cast to pointer from integer of >> different size [-Wint-to-pointer-cast] 297 | return (void *)(p | VIRTIO_XSK_FLAG); | ^ drivers/net/virtio_net.c: In function 'ptr_to_xsk': >> drivers/net/virtio_net.c:302:15: warning: cast from pointer to integer of >> different size [-Wpointer-to-int-cast] 302 | desc->len = ((u64)ptr) >> VIRTIO_XSK_PTR_SHIFT; | ^ vim +297 drivers/net/virtio_net.c 291 292 static void *xsk_to_ptr(struct xdp_desc *desc) 293 { 294 /* save the desc len to ptr */ 295 u64 p = desc->len << VIRTIO_XSK_PTR_SHIFT; 296 > 297 return (void *)(p | VIRTIO_XSK_FLAG); 298 } 299 300 static void ptr_to_xsk(void *ptr, struct xdp_desc *desc) 301 { > 302 desc->len = ((u64)ptr) >> VIRTIO_XSK_PTR_SHIFT; 303 } 304 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org
.config.gz
Description: application/gzip