Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107534963
D31001.id91668.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
812 B
Referenced Files
None
Subscribers
None
D31001.id91668.diff
View Options
Index: sys/dev/nvme/nvme.h
===================================================================
--- sys/dev/nvme/nvme.h
+++ sys/dev/nvme/nvme.h
@@ -614,7 +614,7 @@
uint32_t cdw13; /* command-specific */
uint32_t cdw14; /* command-specific */
uint32_t cdw15; /* command-specific */
-} __packed;
+};
_Static_assert(sizeof(struct nvme_command) == 16 * 4, "bad size for nvme_command");
@@ -632,7 +632,7 @@
/* dword 3 */
uint16_t cid; /* command identifier */
uint16_t status;
-} __packed;
+} __aligned(16);
_Static_assert(sizeof(struct nvme_completion) == 4 * 4, "bad size for nvme_completion");
@@ -640,7 +640,7 @@
uint32_t attributes;
uint32_t length;
uint64_t starting_lba;
-} __packed;
+} __aligned(16);
/* Largest DSM Trim that can be done */
#define NVME_MAX_DSM_TRIM 4096
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 1:36 PM (4 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15826093
Default Alt Text
D31001.id91668.diff (812 B)
Attached To
Mode
D31001: nvme: Fix alignment on nvme structures
Attached
Detach File
Event Timeline
Log In to Comment