aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-05-04 09:46:42 -0700
committerBruce Ashfield <bruce.ashfield@windriver.com>2018-05-18 09:53:28 -0400
commit59e401ffeda487d9b3bd092199ec9a98faf5abfe (patch)
tree630d69a78b2e6e960aca8ff76281716157b70850
parent260fd9356917fb3bd73abd36a6bdd7df402ef1a1 (diff)
downloadlinux-yocto-59e401ffeda487d9b3bd092199ec9a98faf5abfe.tar.gz
linux-yocto-59e401ffeda487d9b3bd092199ec9a98faf5abfe.tar.bz2
linux-yocto-59e401ffeda487d9b3bd092199ec9a98faf5abfe.zip
powerpc: Disable attribute-alias warnings from gcc8
Fixes alias between functions of incompatible types warnings which are new with gcc8 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r--arch/powerpc/kernel/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 1b6bc7fba996..7fab5ab9edc2 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