Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id BF8DDE00C1A; Thu, 10 Nov 2016 06:29:01 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (dominic.sacre[at]gmx.de) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [212.227.15.19 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B072FE00C17 for ; Thu, 10 Nov 2016 06:29:00 -0800 (PST) Received: from dastp.fritz.box ([80.147.195.117]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LcBin-1cUJiN3LE5-00jc3e; Thu, 10 Nov 2016 15:23:58 +0100 From: =?UTF-8?q?Dominic=20Sacr=C3=A9?= To: meta-freescale@yoctoproject.org Date: Thu, 10 Nov 2016 15:23:53 +0100 Message-Id: <20161110142354.4473-1-dominic.sacre@gmx.de> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 X-Provags-ID: V03:K0:r/ZacQWHOPE+CHN35Qc9rOV9A5RYXS0u0UeN1HjvGgYriffJ4fL YRaXddvKsITfQ4U1fhxP+f31+ndK/eamVkXI7QRmfawLeC5Ql+3SAPbFy+4yfvn4+bkliTf 5Ab5nSMPoHsZqegnQ/Bks46M44XMjQFWIx0pGOGRNKePggpbyMRLPdq+Lup2s/pNyjcb5z1 L5O08qbEuIixgcjqyIl1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:Oa5oK2Lqkz4=:A3tkIkOMe2itoRE6DdQzaC lVE37/gOj2680YecNpP3Y6iSRD+k1nJkwG7WB1ebDICuD8gKySHbuvhEY7Q/GDd4dgFKi/K/K p3xxY/bcF1NGjEcyY9sIVZUu2qCsUtqB39loz7Rn9imAzx+jrxlL17KKldPLcbpHQmf164ncL jwFaJ1t1uTxKaPRLSGexvv96Z1OXvHjXIrYbO5Zgyy/eET2Ct7Q2gM1IyLGvDwLG4jalA2Elr nU/SraqeaTbS5sFywpRs1wwmj7tu1Pk48/XLevS1JF7DV3LER+41PCcm0tQPDcrLu1G7XGLP2 bpYu+FW5YFekF6IdQWjh6owp5A6xWrXN41NVzgb7twMepJMNAIs7bfFf5CGOHG0TwleUW35if OmY3FP5qYcREmxASWZenUMD/hefDpuYxUBFaojM3GQAIU3d8RBhe1y5RjSQl5Uh6LbgWh4H77 01r6l1rCVmZUicq0zPc6VInIlZURuWekDZCjE2lr3z59UyUbDqsIre5Qo7Ne5trGcej5xALhv CfzzCqOXrMYJFv+q7mbOpi1AmLbQ8Z4Ih+EX5qIyC8AklKYvFlVLTEA9pLNelu/XvjVdHFTmI 8bZWR31x23Iocun5GNS0BuvhFTqvBA7AeG0I96fK8Mw8sGlJUKj0Qkluiag4NS9pNsi4NYrng K1BC2DtC6eelJXGZMQB/5WZlQYj95Bm1R21j1YDMcVP1Gw190Zo7ocFJH2Wmx6qk2Gk+6PnQS BqxCQ0lDYrvIEi6o45uHpXqUyCfxBhIOMtYrUvtASrrRrshX21oqgWl/vln3iS82QSuDrcX1k /zRcjc1 Cc: =?UTF-8?q?Dominic=20Sacr=C3=A9?= Subject: [3rdparty][PATCH 1/2] linux-wandboard: Add patch to fix build error with gcc6 X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2016 14:29:01 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this patch, gcc6 fails to build the Vivante driver with -Werror=misleading-indentation. Signed-off-by: Dominic Sacré --- .../Fix-gcc6-build-error-in-Vivante-driver.patch | 41 ++++++++++++++++++++++ recipes-kernel/linux/linux-wandboard_4.1.15.bb | 5 ++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/linux-wandboard-4.1.15/Fix-gcc6-build-error-in-Vivante-driver.patch diff --git a/recipes-kernel/linux/linux-wandboard-4.1.15/Fix-gcc6-build-error-in-Vivante-driver.patch b/recipes-kernel/linux/linux-wandboard-4.1.15/Fix-gcc6-build-error-in-Vivante-driver.patch new file mode 100644 index 0000000..5718f9a --- /dev/null +++ b/recipes-kernel/linux/linux-wandboard-4.1.15/Fix-gcc6-build-error-in-Vivante-driver.patch @@ -0,0 +1,41 @@ +From 4555b623e15150ca31ee327232b1862227b14565 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Dominic=20Sacr=C3=A9?= +Date: Thu, 27 Oct 2016 22:35:04 +0200 +Subject: [PATCH] Fix gcc6 build error in Vivante driver +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +| gc_hal_kernel_platform_imx6q14.c: In function 'gckPLATFORM_AdjustParam': +| gc_hal_kernel_platform_imx6q14.c:478:3: error: this 'if' clause does not guard... [-Werror=misleading-indentation] +| if(Args->physSize == 0) +| ^~ +| gc_hal_kernel_platform_imx6q14.c:481:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' +| return gcvSTATUS_OK; +| ^~~~~~ + +Signed-off-by: Dominic Sacré + +Upstream-Status: Pending +--- + .../linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c +index e436ada..3d25eb9 100644 +--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c ++++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/platform/freescale/gc_hal_kernel_platform_imx6q14.c +@@ -475,8 +475,8 @@ gckPLATFORM_AdjustParam( + + Args->gpu3DMinClock = initgpu3DMinClock; + +- if(Args->physSize == 0) +- Args->physSize = 0x80000000; ++ if(Args->physSize == 0) ++ Args->physSize = 0x80000000; + + return gcvSTATUS_OK; + } +-- +2.10.1 + diff --git a/recipes-kernel/linux/linux-wandboard_4.1.15.bb b/recipes-kernel/linux/linux-wandboard_4.1.15.bb index 0a41013..847fa58 100644 --- a/recipes-kernel/linux/linux-wandboard_4.1.15.bb +++ b/recipes-kernel/linux/linux-wandboard_4.1.15.bb @@ -12,6 +12,9 @@ SRCBRANCH = "wandboard_imx_4.1.15_1.1.0_ga" SRCREV = "8b015473d34019c3e093c257861e9c6f4930400b" LOCALVERSION = "_1.1.0_ga-wandboard" -SRC_URI += "file://Fix-the-compile-issue-under-gcc6.patch" +SRC_URI += "\ + file://Fix-the-compile-issue-under-gcc6.patch \ + file://Fix-gcc6-build-error-in-Vivante-driver.patch \ +" COMPATIBLE_MACHINE = "(wandboard)" -- 2.10.2