summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2020-07-10 14:17:13 +0300
committerMichael S. Tsirkin <mst@redhat.com>2020-08-05 16:30:19 +0300
commitcae19a6386c86dec8ec2810a96d7497a2eec8d38 (patch)
treedc9e9d741d579a2e79a71e32649a91b6d9921149 /include
parenta4235ec06acf05c58081700cda02dcd480d9e9cb (diff)
downloadlinux-cae19a6386c86dec8ec2810a96d7497a2eec8d38.tar.xz
virtio_9p: correct tags for config space fields
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>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/virtio_9p.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/virtio_9p.h b/include/uapi/linux/virtio_9p.h
index 277c4ad44e84..441047432258 100644
--- a/include/uapi/linux/virtio_9p.h
+++ b/include/uapi/linux/virtio_9p.h
@@ -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));