Date
1 - 2 of 2
[master][PATCH] ti-img-rogue-driver: fix breakage with GCC 11
Denys Dmytriyenko
From: Denys Dmytriyenko <denys@...>
Explicitly cast the value into correct type to fix this error: | .../services/server/devices/rogue/rgxinit.c:1345:36: error: implicit co= nversion from 'enum <anonymous>' to 'IMG_BOOL' {aka 'enum tag_img_bool'} = [-Werror=3Denum-conversion] | 1345 | bEnableAPM =3D false; | | ^ Cc: Darren Etheridge <detheridge@...> Signed-off-by: Denys Dmytriyenko <denys@...> --- ...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-valu= e-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-rg= xinit.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@...> +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 c= onversion from 'enum <anonymous>' to 'IMG_BOOL' {aka 'enum tag_img_bool'}= [-Werror=3Denum-conversion] +| 1345 | bEnableAPM =3D false; +| | ^ + +Upstream-Status: Pending + +Signed-off-by: Denys Dmytriyenko <denys@...> +--- + 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/d= evices/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 *p= sDeviceNode, + if (bEnableAPM && (!PVRSRV_VZ_MODE_IS(NATIVE))) + { + PVR_DPF((PVR_DBG_WARNING, "%s: Active Power Management disabled in v= irtualization mode", __func__)); +- bEnableAPM =3D false; ++ bEnableAPM =3D (IMG_BOOL)false; + } +=20 + #if defined(RGX_NUM_OS_SUPPORTED) && (RGX_NUM_OS_SUPPORTED > 1) && defi= ned(SUPPORT_AUTOVZ) +--=20 +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-dr= iver_1.15.6133109.bb index 94b05436..2f4a7354 100644 --- a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.15.61= 33109.bb +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-img-rogue-driver_1.15.61= 33109.bb @@ -22,6 +22,7 @@ BRANCH =3D "linuxws/dunfell/k5.10/${PV}" SRC_URI =3D " \ git://git.ti.com/graphics/ti-img-rogue-driver.git;branch=3D${BRANCH}= \ file://0001-compiler-support-OpenEmbedded-nodistro-internal-aarc.pat= ch \ + file://0001-rgxinit.c-cast-boolean-value-to-IMG_BOOL.patch \ " =20 S =3D "${WORKDIR}/git" --=20 2.25.1
|
|
Ryan Eatmon
Patch applied to master.
toggle quoted messageShow quoted text
On 5/2/2022 9:55, Denys Dmytriyenko wrote:
From: Denys Dmytriyenko <denys@...> --
Ryan Eatmon reatmon@... ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
|
|