Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1710204 > unrolled thread
| Started by | Chandan Rajendra <chandan@linux.vnet.ibm.com> |
|---|---|
| First post | 2017-08-12 10:40 +0200 |
| Last post | 2017-08-14 14:30 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] ext4: fix clang build regression Chandan Rajendra <chandan@linux.vnet.ibm.com> - 2017-08-12 10:40 +0200
Re: [PATCH] ext4: fix clang build regression Theodore Ts'o <tytso@mit.edu> - 2017-08-14 14:30 +0200
| From | Chandan Rajendra <chandan@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-08-12 10:40 +0200 |
| Subject | Re: [PATCH] ext4: fix clang build regression |
| Message-ID | <udA7G-6G3-55@gated-at.bofh.it> |
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 <stefan@agner.ch>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
I executed xfstests on a ppc64 machine with both 4k and 64k block size
combination.
Tested-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
--
chandan
[toc] | [next] | [standalone]
| From | Theodore Ts'o <tytso@mit.edu> |
|---|---|
| Date | 2017-08-14 14:30 +0200 |
| Message-ID | <uemFk-45M-21@gated-at.bofh.it> |
| In reply to | #1710204 |
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 <stefan@agner.ch>
> > Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
> I executed xfstests on a ppc64 machine with both 4k and 64k block size
> combination.
>
> Tested-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Thanks, applied.
- Ted
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web