Thread (18 messages) 18 messages, 6 authors, 2021-03-29

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, data) != offsetof(struc...

From: Marc Kleine-Budde <mkl@pengutronix.de>
Date: 2021-03-24 09:58:25
Also in: lkml, oe-kbuild-all

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 |

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help