]> git.baikalelectronics.ru Git - kernel.git/commitdiff
wifi: rtl8xxxu: Add __packed to struct rtl8723bu_c2h
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 1 Dec 2022 14:13:57 +0000 (16:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jan 2023 10:41:12 +0000 (11:41 +0100)
[ Upstream commit dd469a754afdb782ba3033cee102147493dc39f4 ]

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: 58a18e8ecefb ("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>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h

index 6858f7de0915baa11c74d9dd33f2935fcf6dc299..2a02d4d72dec9c15fad31a0af4bd6d84bf2a6752 100644 (file)
@@ -1178,7 +1178,7 @@ struct rtl8723bu_c2h {
                        u8 dummy3_0;
                } __packed ra_report;
        };
-};
+} __packed;
 
 struct rtl8xxxu_fileops;