From patchwork Wed Jun 6 21:37:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 137845 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1290275lji; Wed, 6 Jun 2018 14:38:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJW4DVAEC1Bxt/iPuCQ+eStJ3//YwYwsOI5ytRV9ErPxe5UaYGxs9D0hETP0685oQ7jf2tJ X-Received: by 2002:a62:b02:: with SMTP id t2-v6mr4021299pfi.36.1528321107515; Wed, 06 Jun 2018 14:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528321107; cv=none; d=google.com; s=arc-20160816; b=XgBw6/jd361nSZgcbDFYUANBoF1A0SnH+5uOxKh/PWpAQjRWAf/pxG6vJ1ynP+pHbL Pgeh2cEMcfGKZW2KvZtTecnBSYnqSqm8Mz9MoxyI1BorX2HiXuQEYdcXSeSiKqHMxYvG EjTPaKRyJUUR6jfuQ38UoJcvhlP2qbzGO+h9bId4+cVyNMAram2fSz26YIJwC/E+H0Zj SWAUM0EZAxPBObmBKOx+qGoV1BqRtzOBUUcI8FIEPJ0WHqU6pGBieLA4C6kX5+YKMtIE pzhfmHKe527v5Jl/zwaQtIccqQnvRp8Bvf9WXd7S41+AXkeMxgd5S+vr1XWqjiX3NQBk OZYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=Vd17S3mToW3jr9FcYxzWiCKmUag835OmGnVKhrDVaJA=; b=nLtvn8bXCmcZ98thwWOfqmS7lV8cK5qHQvg/aJzqwmKJSYJ3RLArpm+4P+OzqhDDOI L9wmSlvD3POctFmodsM+lIMSM2FYn98qQgdAxdxTlxLVK3RDJ08KeD5TSgj6DNlIC/cE Yx/qirVz1ku1rKnSlVvokQSkkGRiVdOKe+T/HsGzeoKJxHqpHMla0ftaoblFOLldOtQm iEp7r4kRhtQx4FCQkRKEySo8eLL2IxwVfJRg0ujCG7luscUgLRvIqvnWl4HRmDWSjs+t 2oaqhagZ8R9ZJaENZXp39EBC3FRdunAda0dQFLoc9UoGSI32nfjfXkES+PbGHLelWlhx me2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=TXL65hY1; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id w19-v6si49916721plp.538.2018.06.06.14.38.27; Wed, 06 Jun 2018 14:38:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=TXL65hY1; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id CA2F47834F; Wed, 6 Jun 2018 21:37:45 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by mail.openembedded.org (Postfix) with ESMTP id 3B89477AA7 for ; Wed, 6 Jun 2018 21:37:34 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id p9-v6so3626635pgc.9 for ; Wed, 06 Jun 2018 14:37:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jg/AutZmpffiO+gko7G8B22KOnaR5OJU4juVzvxet/c=; b=TXL65hY1L96spCz5kSSzOP2RUWR6+A4NKI1F6KmIBkYbqUGkrx+n8jqzGSTMf7ifMg Fz811uxM91kITDe6HezSOo3NpT/gVeCzBScYADzEVnbRmE182AbDY1rC5BRfyqjDVKPe MAzu+Fx/xMgN7cJU6qk2ELmV/oe5kXNzV2xMXFFnSIqVuNCA9JZQdxiQ3sXk/f9SL4fy DxaSMaOzSfLafi6nMo1DrwheAhavHPQmEWQKZts5daQL+xLVqI4bEZmAinfgG7JLV+9z +agB2zfv0xkbGzAJAkTdjoM9BLjX1SYSwFEyQ43VST7FxgVTYxL2Dqa8pTBK3DwJCIdn L/Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jg/AutZmpffiO+gko7G8B22KOnaR5OJU4juVzvxet/c=; b=q6ylJqDa8BNWTZABegWI8FeEVqcBcPHFOgqi3j0KxxqBML6G6JhstBTxzH83XYawVN M+SgSQVzGFlIu1YoCyDHft3fk0W0uoOuQg6/2iOVeqxKxUirfdSkE4qcTRBTTPY3+TOI QAdV7B3NptA30SFNmGsXeirpnrSpM6N7cjHc1xV4YjsBesW4Gp0FP72AZSMoWdM1yDR5 qvTdYkSks9wRhbYVh17+VnydhWI60xn5vcE8YvBKwd8d1mhDUSH8hEiUHV0li5JopNkp goUMrATAwBXL3PA5RSgrKWXJHY/MaZGsz0WO30CkWmXYlaozP3fz/0szGZEBkzK/Vsnk wL8w== X-Gm-Message-State: APt69E31I1p7fXLPzFXe3MQxQR0p7g5G+3S+smGI31Ts4EzXo2o50tad WKlZrVgFUG6ze5W6Fzph8DoGLQ== X-Received: by 2002:a63:7c03:: with SMTP id x3-v6mr1698129pgc.412.1528321055878; Wed, 06 Jun 2018 14:37:35 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::c68]) by smtp.gmail.com with ESMTPSA id c191-v6sm30452374pfg.48.2018.06.06.14.37.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jun 2018 14:37:35 -0700 (PDT) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Wed, 6 Jun 2018 14:37:25 -0700 Message-Id: <227283c3a4f6736d716c89879aa74b438861bc1d.1528320772.git.raj.khem@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [OE-core] [PATCH 09/12] linux-yocto: Fix build with gcc8 for ppc X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...e-attribute-alias-warnings-from-gcc8.patch | 31 +++++++++++++++++++ ...isable-array-bounds-warning-with-gcc.patch | 28 +++++++++++++++++ meta/recipes-kernel/linux/linux-yocto_4.15.bb | 4 +++ 3 files changed, 63 insertions(+) create mode 100644 meta/recipes-kernel/linux/files/0001-powerpc-Disable-attribute-alias-warnings-from-gcc8.patch create mode 100644 meta/recipes-kernel/linux/files/0002-powerpc-ptrace-Disable-array-bounds-warning-with-gcc.patch -- 2.17.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-kernel/linux/files/0001-powerpc-Disable-attribute-alias-warnings-from-gcc8.patch b/meta/recipes-kernel/linux/files/0001-powerpc-Disable-attribute-alias-warnings-from-gcc8.patch new file mode 100644 index 0000000000..735e6e62e0 --- /dev/null +++ b/meta/recipes-kernel/linux/files/0001-powerpc-Disable-attribute-alias-warnings-from-gcc8.patch @@ -0,0 +1,31 @@ +From a043b9e85af743103e71afcef943b359154727f8 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Fri, 4 May 2018 09:46:42 -0700 +Subject: [PATCH 1/2] 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 +--- + 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 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 + +-- +2.17.0 + diff --git a/meta/recipes-kernel/linux/files/0002-powerpc-ptrace-Disable-array-bounds-warning-with-gcc.patch b/meta/recipes-kernel/linux/files/0002-powerpc-ptrace-Disable-array-bounds-warning-with-gcc.patch new file mode 100644 index 0000000000..7d6e0f20f6 --- /dev/null +++ b/meta/recipes-kernel/linux/files/0002-powerpc-ptrace-Disable-array-bounds-warning-with-gcc.patch @@ -0,0 +1,28 @@ +From e2704b41efba4a6b94cd12e8d220f70d7a3b5c70 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 +--- + 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.17.0 + diff --git a/meta/recipes-kernel/linux/linux-yocto_4.15.bb b/meta/recipes-kernel/linux/linux-yocto_4.15.bb index 70bd7118bd..31d96ef434 100644 --- a/meta/recipes-kernel/linux/linux-yocto_4.15.bb +++ b/meta/recipes-kernel/linux/linux-yocto_4.15.bb @@ -24,6 +24,10 @@ SRCREV_meta ?= "939d935b0c992c6f1e51a7a1c9e4fbe6ef3c3174" SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \ git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-4.15;destsuffix=${KMETA}" +SRC_URI += "file://0001-powerpc-Disable-attribute-alias-warnings-from-gcc8.patch \ + file://0002-powerpc-ptrace-Disable-array-bounds-warning-with-gcc.patch \ +" + LINUX_VERSION ?= "4.15.13" DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"