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...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
c7654495916e109f76a67fd3ae68f8fa70ab4faa
config: parisc-randconfig-r023-20210617 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.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/0day-ci/linux/commit/6155fdb771fa9f6c96472440c6b846dbf...
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/20210617-033438
git checkout 6155fdb771fa9f6c96472440c6b846dbfc4aebde
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/virtio/virtio_ring.c:1898: warning: expecting prototype for
virtqueue_get_buf(). Prototype was for virtqueue_get_buf_ctx() instead
drivers/virtio/virtio_ring.c:2024: warning: Function parameter or member 'ctx'
not described in 'virtqueue_detach_unused_buf_ctx'
> drivers/virtio/virtio_ring.c:2024: warning: expecting prototype
for virtqueue_detach_unused_buf(). Prototype was for virtqueue_detach_unused_buf_ctx()
instead
vim +2024 drivers/virtio/virtio_ring.c
e6f633e5beab65 Tiwei Bie 2018-11-21 2014
138fd25148638a Tiwei Bie 2018-11-21 2015 /**
138fd25148638a Tiwei Bie 2018-11-21 2016 * virtqueue_detach_unused_buf - detach first
unused buffer
a5581206c565a7 Jiang Biao 2019-04-23 2017 * @_vq: the struct virtqueue we're
talking about.
138fd25148638a Tiwei Bie 2018-11-21 2018 *
138fd25148638a Tiwei Bie 2018-11-21 2019 * Returns NULL or the "data" token
handed to virtqueue_add_*().
138fd25148638a Tiwei Bie 2018-11-21 2020 * This is not valid on an active queue; it is
useful only for device
138fd25148638a Tiwei Bie 2018-11-21 2021 * shutdown.
138fd25148638a Tiwei Bie 2018-11-21 2022 */
6155fdb771fa9f Xuan Zhuo 2021-06-10 2023 void *virtqueue_detach_unused_buf_ctx(struct
virtqueue *_vq, void **ctx)
138fd25148638a Tiwei Bie 2018-11-21 @2024 {
1ce9e6055fa0a9 Tiwei Bie 2018-11-21 2025 struct vring_virtqueue *vq = to_vvq(_vq);
1ce9e6055fa0a9 Tiwei Bie 2018-11-21 2026
6155fdb771fa9f Xuan Zhuo 2021-06-10 2027 return vq->packed_ring ?
6155fdb771fa9f Xuan Zhuo 2021-06-10 2028 virtqueue_detach_unused_buf_ctx_packed(_vq,
ctx) :
6155fdb771fa9f Xuan Zhuo 2021-06-10 2029 virtqueue_detach_unused_buf_ctx_split(_vq,
ctx);
6155fdb771fa9f Xuan Zhuo 2021-06-10 2030 }
6155fdb771fa9f Xuan Zhuo 2021-06-10 2031
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org