]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt665x: fix alignment constraints
authorEdmundo Carmona Antoranz <eantoranz@gmail.com>
Tue, 16 Mar 2021 18:17:35 +0000 (12:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Mar 2021 09:21:46 +0000 (10:21 +0100)
commit1fd8809f04cc4ed19c43c9fcae052c20337fe75a
tree39794cff98ba1a45fb90fa151a09e7f1a3a92ed0
parent7a501e43b36a1fd8584f99a1bf4cf43a1d571fea
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: 1b8e392b0eee ("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>
drivers/staging/vt6655/rxtx.h