From 3358c3e8a8e9cdd06ff93d174e4b674af69fa50a Mon Sep 17 00:00:00 2001 From: Vladimir Oltean Date: Fri, 28 Mar 2025 20:04:18 +0200 Subject: [PATCH] package/fmlib: bump version to lf-6.12.3-1.0.0-3-g7a58eca This is technically the master branch, a few commits post release tag. Change log: 7a58ecaf0d90 fm_lib: explicit conversion to ioc_fm_pcd_exceptions in FM_PCD_SetException() 22a0d3f1867e fm_lib: make REPORT_ERROR() definition more function-like 08ac8b3112a8 fm_lib: fix conversion warnings between e_FmPcdEngine and enum ioc_fm_pcd_engine 168eae74fd8a fm_lib: fix integer-to-pointer conversion build warning in GetDeviceId() The build fix patch from Buildroot is no longer necessary, remove it. Signed-off-by: Vladimir Oltean [Julien: switch _VERSION to use git describe syntax] Signed-off-by: Julien Olivain --- ...conversion-error-and-enum-compare-wa.patch | 79 ------------------- package/fmlib/fmlib.hash | 2 +- package/fmlib/fmlib.mk | 2 +- 3 files changed, 2 insertions(+), 81 deletions(-) delete mode 100644 package/fmlib/0001-Fix-the-integer-conversion-error-and-enum-compare-wa.patch diff --git a/package/fmlib/0001-Fix-the-integer-conversion-error-and-enum-compare-wa.patch b/package/fmlib/0001-Fix-the-integer-conversion-error-and-enum-compare-wa.patch deleted file mode 100644 index e38b36128f..0000000000 --- a/package/fmlib/0001-Fix-the-integer-conversion-error-and-enum-compare-wa.patch +++ /dev/null @@ -1,79 +0,0 @@ -From 3a1962a70cec74b3dac979e52a2cbcaa8897b9c8 Mon Sep 17 00:00:00 2001 -From: Akhilesh Nema -Date: Fri, 10 Jan 2025 20:20:50 -0800 -Subject: [PATCH] Fix the integer conversion error and enum compare - warnings on build under gcc-14 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Error: -src/fm_lib.c: In function ‘GetDeviceId’: -src/fm_lib.c:139:21: error: returning ‘uintptr_t’ {aka ‘long unsigned int’} from a function with return type ‘t_Handle’ {aka ‘void *’} makes pointer from integer without a cast [-Wint-conversion] - 139 | return p_Dev->id; - | ~~~~~^~~~ - -Warnings: - -src/fm_lib.c: In function ‘FM_PCD_CcRootModifyNextEngine’: -src/fm_lib.c:997:51: warning: comparison between ‘e_FmPcdEngine’ and ‘enum ioc_fm_pcd_engine’ [-Wenum-compare] - 997 | if (p_FmPcdCcNextEngineParams->nextEngine == e_IOC_FM_PCD_FR) { - | ^~ -src/fm_lib.c: In function ‘FM_PCD_MatchTableAddKey’: -src/fm_lib.c:1103:57: warning: comparison between ‘e_FmPcdEngine’ and ‘enum ioc_fm_pcd_engine’ [-Wenum-compare] - 1103 | else if (p_KeyParams->ccNextEngineParams.nextEngine == e_IOC_FM_PCD_FR) { - | ^~ -src/fm_lib.c: In function ‘FM_PCD_MatchTableModifyKeyAndNextEngine’: -src/fm_lib.c:1174:57: warning: comparison between ‘e_FmPcdEngine’ and ‘enum ioc_fm_pcd_engine’ [-Wenum-compare] - 1174 | else if (p_KeyParams->ccNextEngineParams.nextEngine == e_IOC_FM_PCD_FR) { - -Upstream: https://github.com/nxp-qoriq/fmlib/pull/1 - -Signed-off-by: Akhilesh Nema ---- - src/fm_lib.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/src/fm_lib.c b/src/fm_lib.c -index 4ea40ff..85b4a66 100644 ---- a/src/fm_lib.c -+++ b/src/fm_lib.c -@@ -136,7 +136,7 @@ t_Handle GetDeviceId(t_Handle h_Dev) - { - t_Device *p_Dev = (t_Device*)h_Dev; - -- return p_Dev->id; -+ return (t_Handle) p_Dev->id; - } - - -@@ -994,7 +994,7 @@ t_Error FM_PCD_CcRootModifyNextEngine(t_Handle h_CcTree, - } - - #if (DPAA_VERSION >= 11) -- if (p_FmPcdCcNextEngineParams->nextEngine == e_IOC_FM_PCD_FR) { -+ if (p_FmPcdCcNextEngineParams->nextEngine == e_FM_PCD_FR) { - t_Device *p_NextDev = (t_Device*) p_FmPcdCcNextEngineParams->params.frParams.h_FrmReplic; - params.cc_next_engine_params.params.fr_params.frm_replic_id = UINT_TO_PTR(p_NextDev->id); - } -@@ -1100,7 +1100,7 @@ t_Error FM_PCD_MatchTableAddKey(t_Handle h_CcNode, - params.key_params.cc_next_engine_params.params.kg_params.p_direct_scheme = UINT_TO_PTR(p_NextDev->id); - } - #if (DPAA_VERSION >= 11) -- else if (p_KeyParams->ccNextEngineParams.nextEngine == e_IOC_FM_PCD_FR) { -+ else if (p_KeyParams->ccNextEngineParams.nextEngine == e_FM_PCD_FR) { - t_Device *p_NextDev = (t_Device*) p_KeyParams->ccNextEngineParams.params.frParams.h_FrmReplic; - params.key_params.cc_next_engine_params.params.fr_params.frm_replic_id = UINT_TO_PTR(p_NextDev->id); - } -@@ -1171,7 +1171,7 @@ t_Error FM_PCD_MatchTableModifyKeyAndNextEngine(t_Handle h_CcNode, - params.key_params.cc_next_engine_params.params.kg_params.p_direct_scheme = UINT_TO_PTR(p_NextDev->id); - } - #if (DPAA_VERSION >= 11) -- else if (p_KeyParams->ccNextEngineParams.nextEngine == e_IOC_FM_PCD_FR) { -+ else if (p_KeyParams->ccNextEngineParams.nextEngine == e_FM_PCD_FR) { - t_Device *p_NextDev = (t_Device*) p_KeyParams->ccNextEngineParams.params.frParams.h_FrmReplic; - params.key_params.cc_next_engine_params.params.fr_params.frm_replic_id = UINT_TO_PTR(p_NextDev->id); - } --- -2.25.1 - diff --git a/package/fmlib/fmlib.hash b/package/fmlib/fmlib.hash index edf87426df..2d63a615c0 100644 --- a/package/fmlib/fmlib.hash +++ b/package/fmlib/fmlib.hash @@ -1,3 +1,3 @@ # Locally computed -sha256 173f1c41207e50dd3908c7dad192962240fd1a9269bca6e368f401134b3503bf fmlib-lf-6.6.52-2.2.0.tar.gz +sha256 087e1be3584a390cf0a75fa3730589edf76aa9a4832fa012a67c381cbf5b57a3 fmlib-lf-6.12.3-1.0.0-3-g7a58eca.tar.gz sha256 5d7770fa9f70f0c6f0b4784bbca8401811259a4b1e03455dbd863ffd0d34d2ca LICENSE diff --git a/package/fmlib/fmlib.mk b/package/fmlib/fmlib.mk index 601a3e16ef..2d25c0845c 100644 --- a/package/fmlib/fmlib.mk +++ b/package/fmlib/fmlib.mk @@ -4,7 +4,7 @@ # ################################################################################ -FMLIB_VERSION = lf-6.6.52-2.2.0 +FMLIB_VERSION = lf-6.12.3-1.0.0-3-g7a58eca FMLIB_SITE = $(call github,nxp-qoriq,fmlib,$(FMLIB_VERSION)) FMLIB_LICENSE = BSD-3-Clause FMLIB_LICENSE_FILES = LICENSE