lkml.org 
[lkml]   [2023]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 09/15] spi: Use struct_size() helper
On Mon, Jul 10, 2023 at 07:10:43PM +0300, Andy Shevchenko wrote:
> On Mon, Jul 10, 2023 at 05:59:55PM +0200, Marc Kleine-Budde wrote:
> > On 10.07.2023 18:49:26, Andy Shevchenko wrote:

...

> > > + struct spi_transfer t[];
> >
> > You might want to use the DECLARE_FLEX_ARRAY helper here.
>
> Technically, yes, semantically documentation [1] disagrees with

"and [2]"

> you, so I leave it as is.
>
> [1]: Documentation/process/deprecated.rst:269

[2]: Documentation/process/deprecated.rst:350

--
With Best Regards,
Andy Shevchenko


\
 
 \ /
  Last update: 2023-07-10 18:15    [W:0.074 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site