Re: [v2] powerpc/64: Fix build failure with GCC 8.1

2018-06-04 Thread Michael Ellerman
On Tue, 2018-05-29 at 06:03:53 UTC, Christophe Leroy wrote: > CC arch/powerpc/kernel/nvram_64.o > arch/powerpc/kernel/nvram_64.c: In function 'nvram_create_partition': > arch/powerpc/kernel/nvram_64.c:1042:2: error: 'strncpy' specified bound 12 > equals destination size

Re: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-31 Thread Michael Ellerman
Christophe LEROY writes: > Le 31/05/2018 à 07:54, Michael Ellerman a écrit : >> Christophe LEROY writes: >>> Le 29/05/2018 à 11:05, Geert Uytterhoeven a écrit : Hi Christophe, On Tue, May 29, 2018 at 10:56 AM, Christophe LEROY wrote: > Le 29/05/2018 à 09:47, Geert

Re: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-30 Thread Christophe LEROY
Le 31/05/2018 à 07:54, Michael Ellerman a écrit : Christophe LEROY writes: Le 29/05/2018 à 11:05, Geert Uytterhoeven a écrit : Hi Christophe, On Tue, May 29, 2018 at 10:56 AM, Christophe LEROY wrote: Le 29/05/2018 à 09:47, Geert Uytterhoeven a écrit : On Tue, May 29, 2018 at 8:03 AM,

Re: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-30 Thread Michael Ellerman
Christophe LEROY writes: > Le 29/05/2018 à 11:05, Geert Uytterhoeven a écrit : >> Hi Christophe, >> On Tue, May 29, 2018 at 10:56 AM, Christophe LEROY >> wrote: >>> Le 29/05/2018 à 09:47, Geert Uytterhoeven a écrit : On Tue, May 29, 2018 at 8:03 AM, Christophe Leroy > ---

RE: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-29 Thread David Laight
From: Christophe LEROY > Sent: 29 May 2018 10:37 ... > - strncpy(new_part->header.name, name, 12); > + memcpy(new_part->header.name, name, strnlen(name, > sizeof(new_part->header.name))); > >>> > >>> > >>> The comment for nvram_header.lgnth says: > >>> > >>> /*

Re: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-29 Thread Christophe LEROY
Le 29/05/2018 à 11:05, Geert Uytterhoeven a écrit : Hi Christophe, On Tue, May 29, 2018 at 10:56 AM, Christophe LEROY wrote: Le 29/05/2018 à 09:47, Geert Uytterhoeven a écrit : On Tue, May 29, 2018 at 8:03 AM, Christophe Leroy wrote: CC arch/powerpc/kernel/nvram_64.o

Re: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-29 Thread Geert Uytterhoeven
Hi Christophe, On Tue, May 29, 2018 at 10:56 AM, Christophe LEROY wrote: > Le 29/05/2018 à 09:47, Geert Uytterhoeven a écrit : >> On Tue, May 29, 2018 at 8:03 AM, Christophe Leroy >> wrote: >>> >>>CC arch/powerpc/kernel/nvram_64.o >>> arch/powerpc/kernel/nvram_64.c: In function

Re: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-29 Thread Christophe LEROY
Le 29/05/2018 à 09:47, Geert Uytterhoeven a écrit : Hi Christophe, CC Geoff On Tue, May 29, 2018 at 8:03 AM, Christophe Leroy wrote: CC arch/powerpc/kernel/nvram_64.o arch/powerpc/kernel/nvram_64.c: In function 'nvram_create_partition': arch/powerpc/kernel/nvram_64.c:1042:2:

Re: [PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-29 Thread Geert Uytterhoeven
Hi Christophe, CC Geoff On Tue, May 29, 2018 at 8:03 AM, Christophe Leroy wrote: > CC arch/powerpc/kernel/nvram_64.o > arch/powerpc/kernel/nvram_64.c: In function 'nvram_create_partition': > arch/powerpc/kernel/nvram_64.c:1042:2: error: 'strncpy' specified bound 12 > equals destination

[PATCH v2] powerpc/64: Fix build failure with GCC 8.1

2018-05-29 Thread Christophe Leroy
CC arch/powerpc/kernel/nvram_64.o arch/powerpc/kernel/nvram_64.c: In function 'nvram_create_partition': arch/powerpc/kernel/nvram_64.c:1042:2: error: 'strncpy' specified bound 12 equals destination size [-Werror=stringop-truncation] strncpy(new_part->header.name, name, 12);