From: Christian Lamparter Date: Sun, 23 Jan 2011 21:06:07 +0000 (+0100) Subject: carl9170 firmware: optimize carl9170_tx_superframe access X-Git-Tag: 1.9.3~11 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a9c6deb3f90e2a8362e555ed78a56a134be7d52f;p=carl9170fw.git carl9170 firmware: optimize carl9170_tx_superframe access Setting __aligned allows gcc to produce more compact binaries. Signed-off-by: Christian Lamparter --- diff --git a/include/shared/wlan.h b/include/shared/wlan.h index 9e1324b..6d6a506 100644 --- a/include/shared/wlan.h +++ b/include/shared/wlan.h @@ -278,7 +278,7 @@ struct ar9170_tx_frame { struct carl9170_tx_superframe { struct carl9170_tx_superdesc s; struct ar9170_tx_frame f; -} __packed; +} __packed __aligned(4); #endif /* __CARL9170FW__ */ @@ -328,7 +328,7 @@ struct _carl9170_tx_superframe { struct _carl9170_tx_superdesc s; struct _ar9170_tx_hwdesc f; u8 frame_data[0]; -} __packed; +} __packed __aligned(4); #define CARL9170_TX_SUPERDESC_LEN 24 #define AR9170_TX_HWDESC_LEN 8