Commit 89dca86d authored by Brian Norris's avatar Brian Norris Committed by Kalle Valo

rtw88: mark rtw_fw_hdr __packed

The use of u8 and __le16 in this struct assumes that it's going to be
packed to byte alignment. C doesn't guarantee that, so we should mark
this __packed.

Fixes: cc20a713 ("rtw88: use struct rtw_fw_hdr to access firmware header")
Cc: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 868ad214
...@@ -127,7 +127,7 @@ struct rtw_fw_hdr { ...@@ -127,7 +127,7 @@ struct rtw_fw_hdr {
__le32 emem_size; __le32 emem_size;
__le32 emem_addr; __le32 emem_addr;
__le32 imem_addr; __le32 imem_addr;
}; } __packed;
/* C2H */ /* C2H */
#define GET_CCX_REPORT_SEQNUM(c2h_payload) (c2h_payload[8] & 0xfc) #define GET_CCX_REPORT_SEQNUM(c2h_payload) (c2h_payload[8] & 0xfc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment