Skip to content

Commit

Permalink
virtio_blk: fix endianess annotations
Browse files Browse the repository at this point in the history
Since commit 72e61eb (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>
  • Loading branch information
Christian Borntraeger authored and Rusty Russell committed May 30, 2008
1 parent 7f31fe0 commit 7757f09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/linux/virtio_blk.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7757f09

Please sign in to comment.