Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

virtio_console: 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>

+4 -4
+4 -4
include/uapi/linux/virtio_console.h
··· 45 45 46 46 struct virtio_console_config { 47 47 /* colums of the screens */ 48 - __u16 cols; 48 + __virtio16 cols; 49 49 /* rows of the screens */ 50 - __u16 rows; 50 + __virtio16 rows; 51 51 /* max. number of ports this device can hold */ 52 - __u32 max_nr_ports; 52 + __virtio32 max_nr_ports; 53 53 /* emergency write register */ 54 - __u32 emerg_wr; 54 + __virtio32 emerg_wr; 55 55 } __attribute__((packed)); 56 56 57 57 /*