Re: [PATCH] can: ucan: fix alignment constraints
From: Marc Kleine-Budde
Date: Mon Feb 08 2021 - 08:18:55 EST
On 04.02.2021 17:26:13, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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.
>
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Applied to linux-can-next/testing.
Thanks,
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Attachment:
signature.asc
Description: PGP signature