Skip to content

Commit 2cafd46

Browse files
eantoranzgregkh
authored andcommitted
staging: vt665x: fix alignment constraints
Removing 2 instances of alignment warnings drivers/staging/vt6655/rxtx.h:153:1: warning: alignment 1 of ‘struct vnt_cts’ is less than 2 [-Wpacked-not-aligned] drivers/staging/vt6655/rxtx.h:163:1: warning: alignment 1 of ‘struct vnt_cts_fb’ is less than 2 [-Wpacked-not-aligned] The root cause seems to be that _because_ struct ieee80211_cts is marked as __aligned(2), this requires any encapsulating struct to also have an alignment of 2. Fixes: 2faf12c ("staging: vt665x: fix alignment constraints") Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Edmundo Carmona Antoranz <eantoranz@gmail.com> Link: https://lore.kernel.org/r/20210316181736.2553318-1-eantoranz@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d2d106f commit 2cafd46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/staging/vt6655/rxtx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ struct vnt_cts {
150150
u16 reserved;
151151
struct ieee80211_cts data;
152152
u16 reserved2;
153-
} __packed;
153+
} __packed __aligned(2);
154154

155155
struct vnt_cts_fb {
156156
struct vnt_phy_field b;
@@ -160,7 +160,7 @@ struct vnt_cts_fb {
160160
__le16 cts_duration_ba_f1;
161161
struct ieee80211_cts data;
162162
u16 reserved2;
163-
} __packed;
163+
} __packed __aligned(2);
164164

165165
struct vnt_tx_fifo_head {
166166
u8 tx_key[WLAN_KEY_LEN_CCMP];

0 commit comments

Comments
 (0)