[PATCH 2/2] nvme.h: add missing endianess annotations
Christoph Hellwig
hch at lst.de
Mon Aug 17 12:09:40 PDT 2015
Doesn't matter for the current NVMe driver, but we might as well get it in
order for future software controller implementations.
Signed-off-by: Christoph Hellwig <hch at lst.de>
---
include/uapi/linux/nvme.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/nvme.h b/include/uapi/linux/nvme.h
index 732b32e..d1b644b 100644
--- a/include/uapi/linux/nvme.h
+++ b/include/uapi/linux/nvme.h
@@ -50,8 +50,8 @@ struct nvme_id_ctrl {
__u8 ieee[3];
__u8 mic;
__u8 mdts;
- __u16 cntlid;
- __u32 ver;
+ __le16 cntlid;
+ __le32 ver;
__u8 rsvd84[172];
__le16 oacs;
__u8 acl;
--
1.9.1
More information about the Linux-nvme
mailing list