Re: [PATCH] md: raid10: remove VLAIS

2017-10-05 Thread Shaohua Li
On Fri, Oct 06, 2017 at 01:22:12PM +1100, Neil Brown wrote: > On Thu, Oct 05 2017, Matthias Kaehlcke wrote: > > > Hi Neil, > > > > El Fri, Oct 06, 2017 at 10:58:59AM +1100 NeilBrown ha dit: > > > >> On Thu, Oct 05 2017, Matthias Kaehlcke wrote: > >> > >> > The raid10 driver can't be built with cl

Re: [PATCH] md: raid10: remove VLAIS

2017-10-05 Thread NeilBrown
On Thu, Oct 05 2017, Matthias Kaehlcke wrote: > Hi Neil, > > El Fri, Oct 06, 2017 at 10:58:59AM +1100 NeilBrown ha dit: > >> On Thu, Oct 05 2017, Matthias Kaehlcke wrote: >> >> > The raid10 driver can't be built with clang since it uses a variable >> > length array in a structure (VLAIS): >> > >>

Re: [PATCH] md: raid10: remove VLAIS

2017-10-05 Thread Matthias Kaehlcke
Hi Neil, El Fri, Oct 06, 2017 at 10:58:59AM +1100 NeilBrown ha dit: > On Thu, Oct 05 2017, Matthias Kaehlcke wrote: > > > The raid10 driver can't be built with clang since it uses a variable > > length array in a structure (VLAIS): > > > > drivers/md/raid10.c:4583:17: error: fields must have a c

Re: [PATCH] md: raid10: remove VLAIS

2017-10-05 Thread NeilBrown
On Thu, Oct 05 2017, Matthias Kaehlcke wrote: > The raid10 driver can't be built with clang since it uses a variable > length array in a structure (VLAIS): > > drivers/md/raid10.c:4583:17: error: fields must have a constant size: > 'variable length array in structure' extension will never be sup

Re: [PATCH] md: raid10: remove VLAIS

2017-10-05 Thread Shaohua Li
On Thu, Oct 05, 2017 at 11:28:47AM -0700, Matthias Kaehlcke wrote: > The raid10 driver can't be built with clang since it uses a variable > length array in a structure (VLAIS): > > drivers/md/raid10.c:4583:17: error: fields must have a constant size: > 'variable length array in structure' extens

Re: [PATCH] md: raid10: remove VLAIS

2017-10-05 Thread Guenter Roeck
On Thu, Oct 5, 2017 at 11:28 AM, Matthias Kaehlcke wrote: > The raid10 driver can't be built with clang since it uses a variable > length array in a structure (VLAIS): > > drivers/md/raid10.c:4583:17: error: fields must have a constant size: > 'variable length array in structure' extension will

[PATCH] md: raid10: remove VLAIS

2017-10-05 Thread Matthias Kaehlcke
The raid10 driver can't be built with clang since it uses a variable length array in a structure (VLAIS): drivers/md/raid10.c:4583:17: error: fields must have a constant size: 'variable length array in structure' extension will never be supported Allocate the r10bio struct with kmalloc instead