commit: http://blackfin.uclinux.org/git/?p=linux-kernel;a=commitdiff;h=3b493d4560267f3ab09a2f9e94afde9208074314
branch: http://blackfin.uclinux.org/git/?p=linux-kernel;a=shortlog;h=refs/heads/2011R1

Mark structs which are embedded into the firmware as packed.

Signed-off-by: Lars-Peter Clausen <[email protected]>
---
 sound/soc/codecs/sigma.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/sigma.h b/sound/soc/codecs/sigma.h
index d0de882..745f1bd 100644
--- a/sound/soc/codecs/sigma.h
+++ b/sound/soc/codecs/sigma.h
@@ -25,7 +25,7 @@ struct sigma_firmware_header {
 	unsigned char magic[7];
 	u8 version;
 	__le32 crc;
-};
+} __packed;
 
 enum {
 	SIGMA_ACTION_WRITEXBYTES = 0,
@@ -43,7 +43,7 @@ struct sigma_action {
 	__le16 len;
 	__be16 addr;
 	unsigned char payload[];
-};
+} __packed;
 
 static inline u32 sigma_action_len(struct sigma_action *sa)
 {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to