Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109309591
D41339.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
539 B
Referenced Files
None
Subscribers
None
D41339.diff
View Options
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -147,8 +147,16 @@
int md_fwsectors;
uint32_t md_label;
int md_pad[MDNPAD];
-} __attribute__((__packed__));
+}
+#ifdef __amd64__
+__attribute__((__packed__))
+#endif
+;
+#ifndef __amd64__
+CTASSERT((sizeof(struct md_ioctl32)) == 440);
+#else
CTASSERT((sizeof(struct md_ioctl32)) == 436);
+#endif
#define MDIOCATTACH_32 _IOC_NEWTYPE(MDIOCATTACH, struct md_ioctl32)
#define MDIOCDETACH_32 _IOC_NEWTYPE(MDIOCDETACH, struct md_ioctl32)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 9:38 AM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16451415
Default Alt Text
D41339.diff (539 B)
Attached To
Mode
D41339: md driver compat32: fix structure padding for arm, powerpc
Attached
Detach File
Event Timeline
Log In to Comment