From 8632f470f02c70d9501ae21f57740ea23c14773f Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 4 May 2018 09:50:05 -0700 Subject: [PATCH 2/2] powerpc/ptrace: Disable array-bounds warning with gcc8 This masks the new gcc8 warning include/linux/regset.h:270:4: error: 'memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union ' Signed-off-by: Khem Raj Signed-off-by: Bruce Ashfield --- arch/powerpc/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 7fab5ab9edc2..601118b43545 100644 --- a/arch/powerpc/kernel/Makefile +++ b/arch/powerpc/kernel/Makefile @@ -4,6 +4,7 @@ # CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"' $(call cc-disable-warning, attribute-alias) +CFLAGS_ptrace.o += $(call cc-disable-warning, array-bounds) CFLAGS_syscalls.o += $(call cc-disable-warning, attribute-alias) subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror -- 2.5.0