From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753259AbdHNM3v (ORCPT ); Mon, 14 Aug 2017 08:29:51 -0400 Received: from imap.thunk.org ([74.207.234.97]:40472 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753074AbdHNM3t (ORCPT ); Mon, 14 Aug 2017 08:29:49 -0400 Date: Mon, 14 Aug 2017 08:29:38 -0400 From: "Theodore Ts'o" To: Chandan Rajendra Cc: Arnd Bergmann , Andreas Dilger , Stefan Agner , Jan Kara , Daeho Jeong , "Darrick J. Wong" , Konstantin Khlebnikov , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ext4: fix clang build regression Message-ID: <20170814122938.caz2j2rqjcuxfqoz@thunk.org> Mail-Followup-To: Theodore Ts'o , Chandan Rajendra , Arnd Bergmann , Andreas Dilger , Stefan Agner , Jan Kara , Daeho Jeong , "Darrick J. Wong" , Konstantin Khlebnikov , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170807105701.3835991-1-arnd@arndb.de> <48473218.z3lFQE8RDq@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48473218.z3lFQE8RDq@localhost.localdomain> User-Agent: NeoMutt/20170609 (1.8.3) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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: > > 'variable length array in structure' extension will never be supported > > ext4_grpblk_t counters[blocksize_bits + 2]; > > > > This reverts part of my previous patch, using a fixed-size array > > again, but keeping the check for the array overflow. > > > > Fixes: 2df2c3402fc8 ("ext4: fix warning about stack corruption") > > Reported-by: Stefan Agner > > Signed-off-by: Arnd Bergmann > > I executed xfstests on a ppc64 machine with both 4k and 64k block size > combination. > > Tested-by: Chandan Rajendra Thanks, applied. - Ted