Re: [PATCH] md: raid5: avoid string overflow warning

2018-02-21 Thread Shaohua Li
On Tue, Feb 20, 2018 at 02:09:11PM +0100, Arnd Bergmann wrote: > gcc warns about a possible overflow of the kmem_cache string, when adding > four characters to a string of the same length: > > drivers/md/raid5.c: In function 'setup_conf': > drivers/md/raid5.c:2207:34: error: '-alt' directive

Re: [PATCH] md: raid5: avoid string overflow warning

2018-02-21 Thread Shaohua Li
On Tue, Feb 20, 2018 at 02:09:11PM +0100, Arnd Bergmann wrote: > gcc warns about a possible overflow of the kmem_cache string, when adding > four characters to a string of the same length: > > drivers/md/raid5.c: In function 'setup_conf': > drivers/md/raid5.c:2207:34: error: '-alt' directive

[PATCH] md: raid5: avoid string overflow warning

2018-02-20 Thread Arnd Bergmann
gcc warns about a possible overflow of the kmem_cache string, when adding four characters to a string of the same length: drivers/md/raid5.c: In function 'setup_conf': drivers/md/raid5.c:2207:34: error: '-alt' directive writing 4 bytes into a region of size between 1 and 32

[PATCH] md: raid5: avoid string overflow warning

2018-02-20 Thread Arnd Bergmann
gcc warns about a possible overflow of the kmem_cache string, when adding four characters to a string of the same length: drivers/md/raid5.c: In function 'setup_conf': drivers/md/raid5.c:2207:34: error: '-alt' directive writing 4 bytes into a region of size between 1 and 32