Skip to contentSkip to conversation

nvme.h: add missing nvme_lba_range_type endianness annotations

PATCH Applied Wesley Sheng 2 participants 2 messages Jun 16, 2021 – Jun 17, 2021 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme.h: add missing nvme_lba_range_type endianness annotations

---
 include/linux/nvme.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/nvme.h +2 -2
index edcbd60b88b9..378140e16225 100644
@@ -636,8 +636,8 @@ struct nvme_lba_range_type {
 	__u8			type;
 	__u8			attributes;
 	__u8			rsvd2[14];
-	__u64			slba;
-	__u64			nlb;
+	__le64			slba;
+	__le64			nlb;
 	__u8			guid[16];
 	__u8			rsvd48[16];
 };
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw

Thanks,

applied to nvme-5.14.

(and I hope you do not actually plan to use the horribly ill defined LBA ranges for anything..)