summaryrefslogtreecommitdiff
path: root/include/linux/virtio_blk.h
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2008-05-29 13:10:01 +0400
committerRusty Russell <rusty@rustcorp.com.au>2008-05-30 09:09:45 +0400
commit7757f09c70af87887dfc195e6d6ddd54f5cc7c39 (patch)
tree64bd7b86d9bf0a5abe6968bb2c72d5e845244cbe /include/linux/virtio_blk.h
parent7f31fe05000af54e1af81f65a96cab90db8d7ed8 (diff)
downloadlinux-7757f09c70af87887dfc195e6d6ddd54f5cc7c39.tar.xz
virtio_blk: fix endianess annotations
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>
Diffstat (limited to 'include/linux/virtio_blk.h')
-rw-r--r--include/linux/virtio_blk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h
index b80919fad0ef..5f79a5f9de79 100644
--- a/include/linux/virtio_blk.h
+++ b/include/linux/virtio_blk.h
@@ -15,14 +15,14 @@
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;