Michael S. Tsirkin
2020-Aug-05 13:44 UTC
[PATCH v3 31/38] virtio_fs: convert to LE accessors
Virtio fs is modern-only. Use LE accessors for config space. Signed-off-by: Michael S. Tsirkin <mst at redhat.com> --- fs/fuse/virtio_fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c index 4c4ef5d69298..104f35de5270 100644 --- a/fs/fuse/virtio_fs.c +++ b/fs/fuse/virtio_fs.c @@ -606,8 +606,8 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev, unsigned int i; int ret = 0; - virtio_cread(vdev, struct virtio_fs_config, num_request_queues, - &fs->num_request_queues); + virtio_cread_le(vdev, struct virtio_fs_config, num_request_queues, + &fs->num_request_queues); if (fs->num_request_queues == 0) return -EINVAL; -- MST
On Wed, Aug 05, 2020 at 09:44:39AM -0400, Michael S. Tsirkin wrote:> Virtio fs is modern-only. Use LE accessors for config space. > > Signed-off-by: Michael S. Tsirkin <mst at redhat.com>Acked-by: Vivek Goyal <vgoyal at redhat.com> Vivek> --- > fs/fuse/virtio_fs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/fuse/virtio_fs.c b/fs/fuse/virtio_fs.c > index 4c4ef5d69298..104f35de5270 100644 > --- a/fs/fuse/virtio_fs.c > +++ b/fs/fuse/virtio_fs.c > @@ -606,8 +606,8 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev, > unsigned int i; > int ret = 0; > > - virtio_cread(vdev, struct virtio_fs_config, num_request_queues, > - &fs->num_request_queues); > + virtio_cread_le(vdev, struct virtio_fs_config, num_request_queues, > + &fs->num_request_queues); > if (fs->num_request_queues == 0) > return -EINVAL; > > -- > MST >
Maybe Matching Threads
- [PATCH v2 09/24] virtio_fs: correct tags for config space fields
- [PATCH v3 09/38] virtio_fs: correct tags for config space fields
- [PATCH 10/18] virtiofs: Do not use device managed mem for virtio_fs and virtio_fs_vq
- [PATCH 0/3] virtiofs: Small Cleanups for 5.5
- [PATCH v4 15/16] virtio-fs: add virtiofs filesystem