svn commit: r186475 - head/sys/dev/usb
Sam Leffler
sam at FreeBSD.org
Wed Dec 24 06:59:08 UTC 2008
Author: sam
Date: Wed Dec 24 06:59:07 2008
New Revision: 186475
URL: http://svn.freebsd.org/changeset/base/186475
Log:
must pack structures for architectures like arm
Reviewed by: thompsa
Modified:
head/sys/dev/usb/umass.c
Modified: head/sys/dev/usb/umass.c
==============================================================================
--- head/sys/dev/usb/umass.c Wed Dec 24 05:31:26 2008 (r186474)
+++ head/sys/dev/usb/umass.c Wed Dec 24 06:59:07 2008 (r186475)
@@ -197,7 +197,7 @@ typedef struct {
uByte bCDBLength;
# define CBWCDBLENGTH 16
uByte CBWCDB[CBWCDBLENGTH];
-} umass_bbb_cbw_t;
+} __packed umass_bbb_cbw_t;
#define UMASS_BBB_CBW_SIZE 31
/* Command Status Wrapper */
@@ -212,7 +212,7 @@ typedef struct {
# define CSWSTATUS_GOOD 0x0
# define CSWSTATUS_FAILED 0x1
# define CSWSTATUS_PHASE 0x2
-} umass_bbb_csw_t;
+} __packed umass_bbb_csw_t;
#define UMASS_BBB_CSW_SIZE 13
/* CBI features */
More information about the svn-src-all
mailing list