Date: Wed, 24 Dec 2008 06:59:07 +0000 (UTC) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186475 - head/sys/dev/usb Message-ID: <200812240659.mBO6x7S5026341@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812240659.mBO6x7S5026341>