]> git.baikalelectronics.ru Git - kernel.git/commit
can: tcan4x5x: remove __packed attribute from struct tcan4x5x_map_buf
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 13 Jan 2021 20:00:53 +0000 (21:00 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 14 Jan 2021 07:43:44 +0000 (08:43 +0100)
commit9d60fedc55f196bdd7153e69bc236294ed8cef46
treed4ca2ef62940130deaa2707310f1511455b393e6
parentf799fa169b39188971606586c8af0b81eaed7f27
can: tcan4x5x: remove __packed attribute from struct tcan4x5x_map_buf

The first member of struct tcan4x5x_map_buf is the struct tcan4x5x_buf_cmd,
which has a size of 4 bytes. It's followed by an array of u8. The compiler
places the array directly after the struct tcan4x5x_buf_cmd.

This patch removes the not needed attribute __packed from the struct
tcan4x5x_map_buf.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20210113203955.912916-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x.h