Re: [PATCH net-next v3 8/8] virtio-net: free old xmit handle xsk
flat view
From: kernel test robot <hidden>
Date: 2021-03-31 10:11:18
Also in:
oe-kbuild-all
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 <redacted> All warnings (new ones prefixed by >>): drivers/net/virtio_net.c: In function 'xsk_to_ptr':
quoted
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':quoted
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-all@lists.01.org Attachments
- .config.gz [application/gzip] 35538 bytes