Re: [PATCH 09/15] udf: avoid gcc-10 zero-length-bounds warnings

2020-05-01 Thread Pali Rohár
On Friday 01 May 2020 22:30:27 Arnd Bergmann wrote: > On Thu, Apr 30, 2020 at 11:54 PM Pali Rohár wrote: > > > > On Thursday 30 April 2020 23:30:51 Arnd Bergmann wrote: > > > gcc-10 warns about writes to the empty freeSpaceTable[] array, with > > > many instances like: > > > > > > fs/udf/balloc.c:

Re: [PATCH 09/15] udf: avoid gcc-10 zero-length-bounds warnings

2020-05-01 Thread Jan Kara
On Fri 01-05-20 22:30:27, Arnd Bergmann wrote: > On Thu, Apr 30, 2020 at 11:54 PM Pali Rohár wrote: > > > @@ -360,9 +360,9 @@ struct logicalVolIntegrityDesc { > > > uint8_t logicalVolContentsUse[32]; > > > __le32 numOfPartitions; > > > __le32

Re: [PATCH 09/15] udf: avoid gcc-10 zero-length-bounds warnings

2020-05-01 Thread Arnd Bergmann
On Thu, Apr 30, 2020 at 11:54 PM Pali Rohár wrote: > > On Thursday 30 April 2020 23:30:51 Arnd Bergmann wrote: > > gcc-10 warns about writes to the empty freeSpaceTable[] array, with > > many instances like: > > > > fs/udf/balloc.c: In function 'udf_bitmap_new_block': > > fs/udf/balloc.c:101:36: e

Re: [PATCH 09/15] udf: avoid gcc-10 zero-length-bounds warnings

2020-04-30 Thread Pali Rohár
On Thursday 30 April 2020 23:30:51 Arnd Bergmann wrote: > gcc-10 warns about writes to the empty freeSpaceTable[] array, with > many instances like: > > fs/udf/balloc.c: In function 'udf_bitmap_new_block': > fs/udf/balloc.c:101:36: error: array subscript 65535 is outside the bounds of > an interi

[PATCH 09/15] udf: avoid gcc-10 zero-length-bounds warnings

2020-04-30 Thread Arnd Bergmann
gcc-10 warns about writes to the empty freeSpaceTable[] array, with many instances like: fs/udf/balloc.c: In function 'udf_bitmap_new_block': fs/udf/balloc.c:101:36: error: array subscript 65535 is outside the bounds of an interior zero-length array '__le32[0]' {aka 'unsigned int[0]'} [-Werror=z