Fixes alias between functions of incompatible types warnings which are new with gcc8
Signed-off-by: Khem Raj <raj.k...@gmail.com> Cc: Benjamin Herrenschmidt <b...@kernel.crashing.org> Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 2b4c40b255e4..7ac5a68ad6b1 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile @@ -3,7 +3,8 @@ # Makefile for the linux kernel. # -CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' +CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' $(call cc-disable-warning, attribute-alias) +CFLAGS_syscalls.o += $(call cc-disable-warning, attribute-alias) subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror -- 2.17.0