mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00
linux-wandboard: Add patch to fix build error with gcc6
Without this patch, gcc6 fails to build the Vivante driver with -Werror=misleading-indentation. Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
parent
b79752202b
commit
c462a165d2
|
@ -0,0 +1,41 @@
|
|||
From 4555b623e15150ca31ee327232b1862227b14565 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Dominic=20Sacr=C3=A9?= <dominic.sacre@gmx.de>
|
||||
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é <dominic.sacre@gmx.de>
|
||||
|
||||
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
|
||||
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue
Block a user