Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Mathieu Malaterre
On Mon, May 28, 2018 at 5:07 PM, Segher Boessenkool wrote: > On Mon, May 28, 2018 at 02:39:37PM +, Christophe Leroy wrote: >> In file included from arch/powerpc/kernel/syscalls.c:24: >> ./include/linux/syscalls.h:233:18: warning: 'sys_mmap2' alias between >> functions of incompatible types 'lo

Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Segher Boessenkool
On Mon, May 28, 2018 at 02:39:37PM +, Christophe Leroy wrote: > In file included from arch/powerpc/kernel/syscalls.c:24: > ./include/linux/syscalls.h:233:18: warning: 'sys_mmap2' alias between > functions of incompatible types 'long int(long unsigned int, size_t, > long unsigned int, long u

Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Christophe LEROY
Le 28/05/2018 à 16:37, Segher Boessenkool a écrit : On Mon, May 28, 2018 at 02:17:49PM +, Christophe Leroy wrote: Latest GCC version emit many warnings similar to the following one. You didn't actually show an example? Yes I forgot: In file included from arch/powerpc/kernel/syscalls.c

Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Christophe Leroy
On 05/28/2018 02:17 PM, Christophe Leroy wrote: Latest GCC version emit many warnings similar to the following one. Oops, forgot to include the failure text: In file included from arch/powerpc/kernel/syscalls.c:24: ./include/linux/syscalls.h:233:18: warning: 'sys_mmap2' alias between functi

Re: [PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Segher Boessenkool
On Mon, May 28, 2018 at 02:17:49PM +, Christophe Leroy wrote: > Latest GCC version emit many warnings similar to the following one. You didn't actually show an example? This warning should detect serious problems, so don't disable it without first investigating please. What do you call "late

[PATCH] powerpc/Makefile: fix build failure by disabling attribute-alias warning

2018-05-28 Thread Christophe Leroy
Latest GCC version emit many warnings similar to the following one. As arch/powerpc code is built with -Werror, this breaks build with GCC 8.1 This patch inhibits that warning Signed-off-by: Christophe Leroy --- arch/powerpc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/p