]> err.no Git - linux-2.6/commitdiff
virtio_blk: fix endianess annotations
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 29 May 2008 09:10:01 +0000 (11:10 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 30 May 2008 05:09:45 +0000 (15:09 +1000)
Since commit 72e61eb40b55dd57031ec5971e810649f82b0259 (virtio: change config
to guest endian) config space is no longer fixed endian.

Lets change the virtio_blk_config variables.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/virtio_blk.h

index b80919fad0ef902441b2c6818789a0a37f5029cf..5f79a5f9de796b297c86f2647acfce713a533826 100644 (file)
 struct virtio_blk_config
 {
        /* The capacity (in 512-byte sectors). */
-       __le64 capacity;
+       __u64 capacity;
        /* The maximum segment size (if VIRTIO_BLK_F_SIZE_MAX) */
-       __le32 size_max;
+       __u32 size_max;
        /* The maximum number of segments (if VIRTIO_BLK_F_SEG_MAX) */
-       __le32 seg_max;
+       __u32 seg_max;
        /* geometry the device (if VIRTIO_BLK_F_GEOMETRY) */
        struct virtio_blk_geometry {
-               __le16 cylinders;
+               __u16 cylinders;
                __u8 heads;
                __u8 sectors;
        } geometry;