Messages in this thread | | | Date | Wed, 24 Mar 2021 10:57:25 +0100 | From | Marc Kleine-Budde <> | Subject | Re: [kbuild-all] Re: include/linux/compiler_types.h:315:38: error: call to '__compiletime_assert_536' declared with attribute error: BUILD_BUG_ON failed: offsetof(struct can_frame, len) != offsetof(struct canfd_frame, len) || offsetof(struct can_frame, d |
| |
On 24.03.2021 10:09:22, Oliver Hartkopp wrote: > @Marc: Looks like we can not get around the __packed() fix :-( > > At least we now have some more documentation to be referenced and I would > suggest to point out that some compilers handle the union alignment like > this.
It's not the compiler, but the ABI.
> To make clear in the comments what we are suppressing here any why.
Feel free to post an updated patch description.
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 | [unhandled content-type:application/pgp-signature] | |