aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2008-05-02 22:50:45 -0400
committerRusty Russell <rusty@rustcorp.com.au>2008-05-02 07:50:45 -0400
commitcb38fa23c17519faf46a76d2f71a8430705fe474 (patch)
tree8a2a4ac0c4d8091cc15216871bc74e98337bfa41 /include/linux
parent81473132878f8a1d0c6a78cffa0cf84c8a19c1be (diff)
virtio: de-structify virtio_block status byte
Ron Minnich points out that a struct containing a char is not always sizeof(char); simplest to remove the structure to avoid confusion. Cc: "ron minnich" <rminnich@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/virtio_blk.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/linux/virtio_blk.h b/include/linux/virtio_blk.h
index bca0b10d7947..c75a9e82b924 100644
--- a/include/linux/virtio_blk.h
+++ b/include/linux/virtio_blk.h
@@ -41,13 +41,8 @@ struct virtio_blk_outhdr
41 __u64 sector; 41 __u64 sector;
42}; 42};
43 43
44/* And this is the final byte of the write scatter-gather list. */
44#define VIRTIO_BLK_S_OK 0 45#define VIRTIO_BLK_S_OK 0
45#define VIRTIO_BLK_S_IOERR 1 46#define VIRTIO_BLK_S_IOERR 1
46#define VIRTIO_BLK_S_UNSUPP 2 47#define VIRTIO_BLK_S_UNSUPP 2
47
48/* This is the first element of the write scatter-gather list */
49struct virtio_blk_inhdr
50{
51 unsigned char status;
52};
53#endif /* _LINUX_VIRTIO_BLK_H */ 48#endif /* _LINUX_VIRTIO_BLK_H */