Re: [PATCH] 4/4: DM: dm-raid1.c: Use fixed-size arrays

From: Jedi/Sector One
Date: Wed Jun 30 2004 - 15:30:23 EST


On Wed, Jun 30, 2004 at 10:07:53PM +0200, Michael Buesch wrote:
> Quoting Kevin Corry <kevcorry@xxxxxxxxxx>:
> > - struct io_region from, to[ms->nr_mirrors - 1], *dest;
>
> Heh? Could someone please explain how this could compile?

Such a dynamic allocation on the stack is a GCC extension, implemented for
a very long time.

I guess this is not very different from alloca().

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/