Re: [PATCH] ext4: fix clang build regression

2017-08-14 Thread Theodore Ts'o
On Sat, Aug 12, 2017 at 02:09:29PM +0530, Chandan Rajendra wrote: > On Monday, August 7, 2017 4:26:51 PM IST Arnd Bergmann wrote: > > As Stefan pointed out, I misremembered what clang can do specifically, > > and it turns out that the variable-length array at the end of the > > structure did not wo

Re: [PATCH] ext4: fix clang build regression

2017-08-12 Thread Chandan Rajendra
On Monday, August 7, 2017 4:26:51 PM IST Arnd Bergmann wrote: > As Stefan pointed out, I misremembered what clang can do specifically, > and it turns out that the variable-length array at the end of the > structure did not work (a flexible array would have worked here > but not solved the problem):

[PATCH] ext4: fix clang build regression

2017-08-07 Thread Arnd Bergmann
As Stefan pointed out, I misremembered what clang can do specifically, and it turns out that the variable-length array at the end of the structure did not work (a flexible array would have worked here but not solved the problem): fs/ext4/mballoc.c:2303:17: error: fields must have a constant size: