Re: [PATCH] tools/testing: Replace zero-length array with flexible-array
From: Gustavo A. R. Silva
Date: Thu May 07 2020 - 19:00:02 EST
On Thu, May 07, 2020 at 01:04:14PM -0600, Shuah Khan wrote:
> >
> > diff --git a/tools/testing/selftests/nsfs/pidns.c b/tools/testing/selftests/nsfs/pidns.c
> > index e0d86e1668c0..e3c772c6a7c7 100644
> > --- a/tools/testing/selftests/nsfs/pidns.c
> > +++ b/tools/testing/selftests/nsfs/pidns.c
> > @@ -27,7 +27,7 @@
> > #define __stack_aligned__ __attribute__((aligned(16)))
> > struct cr_clone_arg {
> > char stack[128] __stack_aligned__;
> > - char stack_ptr[0];
> > + char stack_ptr[];
> > };
> > static int child(void *args)
> >
>
> Thanks for the patch. I will pull this in for 5.7-rc6
>
Thanks, Shuah.
--
Gustavo