Messages in this thread | | | Date | Wed, 11 Oct 2023 09:00:27 +0200 | From | Marc Kleine-Budde <> | Subject | Re: [PATCH v1 1/1] spi: Don't use flexible array in struct spi_message definition |
| |
On 10.10.2023 19:31:00, Andy Shevchenko wrote: > The struct spi_message can be embedded into another structures. > With that the flexible array might be problematic as sparse > complains about it, although there is no real issue in the code > because when the message is embedded it doesn't use flexible array > member. That memeber is a private to spi_message_alloc() API, so > move it to that API in a form of an inherited data type. > > Reported-by: Marc Kleine-Budde <mkl@pengutronix.de> > Fixes: 75e308ffc4f0 ("spi: Use struct_size() helper")) > Closes: https://lore.kernel.org/r/20231009-onshore-underage-c58415adfd92-mkl@pengutronix.de > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Marc Kleine-Budde <mkl@pengutronix.de>
Thank you for the timely fix!
regards, Marc
-- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 | [unhandled content-type:application/pgp-signature] | |