OSDN Git Service

rtw88: mark rtw_fw_hdr __packed
authorBrian Norris <briannorris@chromium.org>
Mon, 14 Oct 2019 21:26:48 +0000 (14:26 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 16 Oct 2019 07:35:25 +0000 (10:35 +0300)
commit89dca86d29b46f2a5f38ea6476cfd441bd205d25
tree850c7ccb932057b33b198672e8500e6003a4aafb
parent868ad21496020ef83d41fdeed3b0a63de2a3caa5
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: cc20a7139836 ("rtw88: use struct rtw_fw_hdr to access firmware header")
Cc: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/fw.h