virtio_9p: correct tags for config space fields
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 10 Jul 2020 11:17:13 +0000 (07:17 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 13:30:19 +0000 (09:30 -0400)
Tag config space fields as having virtio endian-ness.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
include/uapi/linux/virtio_9p.h

index 277c4ad44e842448df79c1afda9322e84c32e842..441047432258fc3ee052c7e6a0a2468d2c9a59c5 100644 (file)
@@ -25,7 +25,7 @@
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE. */
-#include <linux/types.h>
+#include <linux/virtio_types.h>
 #include <linux/virtio_ids.h>
 #include <linux/virtio_config.h>
 
@@ -36,7 +36,7 @@
 
 struct virtio_9p_config {
        /* length of the tag name */
-       __u16 tag_len;
+       __virtio16 tag_len;
        /* non-NULL terminated tag name */
        __u8 tag[0];
 } __attribute__((packed));