From: Michael S. Tsirkin Date: Fri, 10 Jul 2020 11:17:13 +0000 (-0400) Subject: virtio_console: correct tags for config space fields X-Git-Tag: v5.9-rc1~58^2~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dbe2dc8c5838ef415620a4fe691570b062ab046f;p=thirdparty%2Fkernel%2Flinux.git virtio_console: correct tags for config space fields Tag config space fields as having virtio endian-ness. Signed-off-by: Michael S. Tsirkin Reviewed-by: Cornelia Huck --- diff --git a/include/uapi/linux/virtio_console.h b/include/uapi/linux/virtio_console.h index b7fb108c93109..7e6ec2ff05606 100644 --- a/include/uapi/linux/virtio_console.h +++ b/include/uapi/linux/virtio_console.h @@ -45,13 +45,13 @@ struct virtio_console_config { /* colums of the screens */ - __u16 cols; + __virtio16 cols; /* rows of the screens */ - __u16 rows; + __virtio16 rows; /* max. number of ports this device can hold */ - __u32 max_nr_ports; + __virtio32 max_nr_ports; /* emergency write register */ - __u32 emerg_wr; + __virtio32 emerg_wr; } __attribute__((packed)); /*