Re: [PATCH linux-next] scripts/dtc: Replace zero-length array with DECLARE_FLEX_ARRAY() helper

From: Rob Herring
Date: Tue Nov 15 2022 - 09:54:06 EST


On Mon, Nov 14, 2022 at 7:03 PM <guo.ziliang@xxxxxxxxxx> wrote:
>
> From: guo ziliang <guo.ziliang@xxxxxxxxxx>
>
> Zero-length arrays are deprecated and we are moving towards adopting
> C99 flexible-array members, instead. So, replace zero-length arrays
> declarations in anonymous union with the new DECLARE_FLEX_ARRAY()
> helper macro.
>
> Signed-off-by: guo ziliang <guo.ziliang@xxxxxxxxxx>
> ---
> scripts/dtc/libfdt/fdt.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Changes to dtc/libfdt must go upstream first and then we sync upstream
back to the kernel.