projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f31fe0
)
virtio_blk: fix endianess annotations
author
Christian Borntraeger
<
[email protected]
>
Thu, 29 May 2008 09:10:01 +0000
(11:10 +0200)
committer
Rusty Russell
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Rusty Russell <
[email protected]
>
include/linux/virtio_blk.h
patch
|
blob
|
history
diff --git
a/include/linux/virtio_blk.h
b/include/linux/virtio_blk.h
index b80919fad0ef902441b2c6818789a0a37f5029cf..5f79a5f9de796b297c86f2647acfce713a533826 100644
(file)
--- 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). */
- __
le
64 capacity;
+ __
u
64 capacity;
/* The maximum segment size (if VIRTIO_BLK_F_SIZE_MAX) */
- __
le
32 size_max;
+ __
u
32 size_max;
/* The maximum number of segments (if VIRTIO_BLK_F_SEG_MAX) */
- __
le
32 seg_max;
+ __
u
32 seg_max;
/* geometry the device (if VIRTIO_BLK_F_GEOMETRY) */
struct virtio_blk_geometry {
- __
le
16 cylinders;
+ __
u
16 cylinders;
__u8 heads;
__u8 sectors;
} geometry;