Re: [PATCH] staging: rtl8192u avoid flex array of flex array

From: Greg KH
Date: Tue Mar 02 2021 - 11:48:37 EST


On Sat, Feb 27, 2021 at 07:06:14PM -0600, Darryl T. Agostinelli wrote:
> Undo the flex array in struct ieee80211_info_element. It is used as the flex
> array type in other structs (creating a flex array of flex arrays) making
> sparse unhappy. This change maintains the intent of the code and satisfies
> sparse.

We have been trying to convert the kernel to use the [] style over time,
please don't move backwards on this. There are loads of commits by
Gustavo in the tree that show this work.

thanks,

greg k-h