meta-ti.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* [master][PATCH] ti-img-rogue-driver: fix breakage with GCC 11
@ 2022-05-02 14:55 Denys Dmytriyenko
  2022-05-02 17:54 ` [meta-ti] " Ryan Eatmon
  0 siblings, 1 reply; 2+ messages in thread
From: Denys Dmytriyenko @ 2022-05-02 14:55 UTC (permalink / raw)
  To: meta-ti; +Cc: Denys Dmytriyenko, Darren Etheridge

From: Denys Dmytriyenko <denys@konsulko.com>

Explicitly cast the value into correct type to fix this error:

| .../services/server/devices/rogue/rgxinit.c:1345:36: error: implicit conversion from 'enum <anonymous>' to 'IMG_BOOL' {aka 'enum tag_img_bool'} [-Werror=enum-conversion]
|  1345 |                         bEnableAPM = false;
|       |                                    ^

Cc: Darren Etheridge <detheridge@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 ...nit.c-cast-boolean-value-to-IMG_BOOL.patch | 34 +++++++++++++++++++
 .../ti-img-rogue-driver_1.15.6133109.bb       |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-rgxinit.c-cast-boolean-value-to-IMG_BOOL.patch

diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-rgxinit.c-cast-boolean-value-to-IMG_BOOL.patch b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-rgxinit.c-cast-boolean-value-to-IMG_BOOL.patch
new file mode 100644
index 00000000..8d909279
--- /dev/null
+++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver/0001-rgxinit.c-cast-boolean-value-to-IMG_BOOL.patch
@@ -0,0 +1,34 @@
+From cc95fb4b1635bd1018d74b668430cda67731148f Mon Sep 17 00:00:00 2001
+From: Denys Dmytriyenko <denys@konsulko.com>
+Date: Sat, 30 Apr 2022 18:37:46 +0000
+Subject: [PATCH] rgxinit.c: cast boolean value to IMG_BOOL
+
+Fixes this error with GCC 11:
+
+| .../services/server/devices/rogue/rgxinit.c:1345:36: error: implicit conversion from 'enum <anonymous>' to 'IMG_BOOL' {aka 'enum tag_img_bool'} [-Werror=enum-conversion]
+|  1345 |                         bEnableAPM = false;
+|       |                                    ^
+
+Upstream-Status: Pending
+
+Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
+---
+ services/server/devices/rogue/rgxinit.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/services/server/devices/rogue/rgxinit.c b/services/server/devices/rogue/rgxinit.c
+index ca7a1b9..fc94b73 100644
+--- a/services/server/devices/rogue/rgxinit.c
++++ b/services/server/devices/rogue/rgxinit.c
+@@ -1342,7 +1342,7 @@ PVRSRV_ERROR RGXInitDevPart2(PVRSRV_DEVICE_NODE	*psDeviceNode,
+ 		if (bEnableAPM && (!PVRSRV_VZ_MODE_IS(NATIVE)))
+ 		{
+ 			PVR_DPF((PVR_DBG_WARNING, "%s: Active Power Management disabled in virtualization mode", __func__));
+-			bEnableAPM = false;
++			bEnableAPM = (IMG_BOOL)false;
+ 		}
+ 
+ #if defined(RGX_NUM_OS_SUPPORTED) && (RGX_NUM_OS_SUPPORTED > 1) && defined(SUPPORT_AUTOVZ)
+-- 
+2.25.1
+
diff --git a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.15.6133109.bb b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.15.6133109.bb
index 94b05436..2f4a7354 100644
--- a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.15.6133109.bb
+++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.15.6133109.bb
@@ -22,6 +22,7 @@ BRANCH = "linuxws/dunfell/k5.10/${PV}"
 SRC_URI = " \
     git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=${BRANCH} \
     file://0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.patch \
+    file://0001-rgxinit.c-cast-boolean-value-to-IMG_BOOL.patch \
 "
 
 S = "${WORKDIR}/git"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-02 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-02 14:55 [master][PATCH] ti-img-rogue-driver: fix breakage with GCC 11 Denys Dmytriyenko
2022-05-02 17:54 ` [meta-ti] " Ryan Eatmon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).