linux-stable/tools/virtio/linux
Xuan Zhuo dbe449d8f8 virtio_test: fixup for vq reset
Fix virtio test compilation failure caused by vq reset.

../../drivers/virtio/virtio_ring.c: In function ‘vring_create_virtqueue_packed’:
../../drivers/virtio/virtio_ring.c:1999:8: error: ‘struct virtqueue’ has no member named ‘reset’
 1999 |  vq->vq.reset = false;
      |        ^
../../drivers/virtio/virtio_ring.c: In function ‘__vring_new_virtqueue’:
../../drivers/virtio/virtio_ring.c:2493:8: error: ‘struct virtqueue’ has no member named ‘reset’
 2493 |  vq->vq.reset = false;
      |        ^
../../drivers/virtio/virtio_ring.c: In function ‘virtqueue_resize’:
../../drivers/virtio/virtio_ring.c:2587:18: error: ‘struct virtqueue’ has no member named ‘num_max’
 2587 |  if (num > vq->vq.num_max)
      |                  ^
../../drivers/virtio/virtio_ring.c:2596:11: error: ‘struct virtio_device’ has no member named ‘config’
 2596 |  if (!vdev->config->disable_vq_and_reset)
      |           ^~
../../drivers/virtio/virtio_ring.c:2599:11: error: ‘struct virtio_device’ has no member named ‘config’
 2599 |  if (!vdev->config->enable_vq_after_reset)
      |           ^~
../../drivers/virtio/virtio_ring.c:2602:12: error: ‘struct virtio_device’ has no member named ‘config’
 2602 |  err = vdev->config->disable_vq_and_reset(_vq);
      |            ^~
../../drivers/virtio/virtio_ring.c:2614:10: error: ‘struct virtio_device’ has no member named ‘config’
 2614 |  if (vdev->config->enable_vq_after_reset(_vq))
      |          ^~
make: *** [<builtin>: virtio_ring.o] Error 1

Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Message-Id: <20220830110549.103168-1-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-09-27 18:30:49 -04:00
..
bug.h tools/virtio: include asm/bug.h 2020-12-18 16:14:30 -05:00
compiler.h tools/virtio: define aligned attribute 2020-04-17 06:05:29 -04:00
device.h
dma-mapping.h tools/virtio: fix after premapped buf support 2022-03-28 16:52:59 -04:00
err.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
export.h tools/virtio: fix build after 4.2 changes 2015-09-09 22:03:30 +03:00
hrtimer.h
irqreturn.h
kernel.h tools/virtio: fix build 2022-08-11 04:26:07 -04:00
kmemleak.h tools/virtio: fix missing kmemleak_ignore symbol 2014-03-13 11:23:25 +10:30
mm_types.h tools/virtio: handle fallout from folio work 2022-03-06 06:06:50 -05:00
module.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
printk.h
ratelimit.h
scatterlist.h sg: remove ->sg_magic member 2018-06-29 08:48:06 -06:00
slab.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spinlock.h tools/virtio: fix build 2021-08-11 06:44:24 -04:00
thread_info.h tools/virtio: more stubs to fix tools build 2018-01-29 12:02:54 -05:00
uaccess.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
uio.h tools/virtio: add vring_test. 2013-03-20 14:06:04 +10:30
virtio.h virtio_test: fixup for vq reset 2022-09-27 18:30:49 -04:00
virtio_byteorder.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
virtio_config.h virtio_test: fixup for vq reset 2022-09-27 18:30:49 -04:00
virtio_ring.h
vringh.h tools/virtio: fix build 2022-08-11 04:26:07 -04:00