Skip to content

Commit 6d0e003

Browse files
Bitterblue Smithgregkh
authored andcommitted
wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h
[ Upstream commit dd469a7 ] This struct is used to access a sequence of bytes received from the wifi chip. It must not have any padding bytes between the members. This doesn't change anything on my system, possibly because currently none of the members need more than byte alignment. Fixes: b2b43b7 ("rtl8xxxu: Initial functionality to handle C2H events for 8723bu") Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Reviewed-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/1a270918-da22-ff5f-29fc-7855f740c5ba@gmail.com Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent e69d380 commit 6d0e003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ struct rtl8723bu_c2h {
11901190
u8 bw;
11911191
} __packed ra_report;
11921192
};
1193-
};
1193+
} __packed;
11941194

11951195
struct rtl8xxxu_fileops;
11961196

0 commit comments

Comments
 (0)