]> git.baikalelectronics.ru Git - kernel.git/commit
can: ucan: fix alignment constraints
authorArnd Bergmann <arnd@arndb.de>
Thu, 4 Feb 2021 16:26:13 +0000 (17:26 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 30 Mar 2021 09:14:46 +0000 (11:14 +0200)
commit408c29194f0bda1f57d86d6bd49d0c3ad374f24f
tree141c386583e5e1af6a36de7f70b0165b5273490c
parent40c6d5977eb73965a4e402dd8dc5b6b24ad7e840
can: ucan: fix alignment constraints

struct ucan_message_in contains member with 4-byte alignment
but is itself marked as unaligned, which triggers a warning:

drivers/net/can/usb/ucan.c:249:1: warning: alignment 1 of 'struct ucan_message_in' is less than 4 [-Wpacked-not-aligned]

Mark the outer structure to have the same alignment as the inner
one.

Link: https://lore.kernel.org/r/20210204162625.3099392-1-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ucan.c