Re: [PATCH] IB/core, cache: Replace zero-length array with flexible-array member

From: Gustavo A. R. Silva
Date: Thu Feb 20 2020 - 13:29:34 EST




On 2/20/20 11:37, Jason Gunthorpe wrote:

>
> I squished the four drivers/infiniband patches together and added a
> few more, see below. Applied to for-next
>

Great! Thank you. :)

> It would be fanatstic to follow this up with some analysis to find
> cases where sizeof() is performed on a struct with a [] flex array -
> these days people should be using struct_size() (interested DanC?)
>

I've been working on both things:

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/?qt=grep&q=struct_size%28%29+helper

Thanks
--
Gustavo