From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 40d23z5MqPzDr4X for ; Sat, 5 May 2018 05:23:24 +1000 (AEST) Received: by mail-pf0-x241.google.com with SMTP id j20so3852439pff.10 for ; Fri, 04 May 2018 12:23:24 -0700 (PDT) From: Khem Raj To: linuxppc-dev@lists.ozlabs.org Cc: Khem Raj , Benjamin Herrenschmidt Subject: [PATCH 2/2] powerpc/ptrace: Disable array-bounds warning with gcc8 Date: Fri, 4 May 2018 12:23:13 -0700 Message-Id: <20180504192313.18625-2-raj.khem@gmail.com> In-Reply-To: <20180504192313.18625-1-raj.khem@gmail.com> References: <20180504192313.18625-1-raj.khem@gmail.com> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This masks the new gcc8 warning 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 Cc: Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org --- arch/powerpc/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile index 7ac5a68ad6b1..ab159a34704a 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.17.0