[PATCH] dma/dpaa2: fix logtype register

Hemant Agrawal hemant.agrawal at nxp.com
Mon Dec 18 17:43:21 CET 2023



> -----Original Message-----
> From: David Marchand <david.marchand at redhat.com>
> Sent: Monday, December 18, 2023 9:17 PM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Gagandeep Singh <G.Singh at nxp.com>; Hemant Agrawal
> <hemant.agrawal at nxp.com>; Nipun Gupta <nipun.gupta at amd.com>
> Subject: [PATCH] dma/dpaa2: fix logtype register
> Importance: High
> 
> This driver logtype was not initialized so its logs would end up under the
0
> logtype, iow, RTE_LOGTYPE_EAL.
> This issue comes from a typo on the logtype variable name.
> 
> Fixes: 8caf8427f85a ("dma/dpaa2: introduce driver skeleton")
> Cc: stable at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>

[Hemant] Thanks
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>

> ---
>  drivers/dma/dpaa2/dpaa2_qdma.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c
> b/drivers/dma/dpaa2/dpaa2_qdma.c index 8968bb853b..2c91ceec13 100644
> --- a/drivers/dma/dpaa2/dpaa2_qdma.c
> +++ b/drivers/dma/dpaa2/dpaa2_qdma.c
> @@ -16,9 +16,6 @@
> 
>  #define DPAA2_QDMA_PREFETCH "prefetch"
> 
> -/* Dynamic log type identifier */
> -int dpaa2_qdma_logtype;
> -
>  uint32_t dpaa2_coherent_no_alloc_cache;  uint32_t
> dpaa2_coherent_alloc_cache;
> 
> @@ -1699,4 +1696,4 @@ static struct rte_dpaa2_driver
> rte_dpaa2_qdma_pmd = {  RTE_PMD_REGISTER_DPAA2(dpaa2_qdma,
> rte_dpaa2_qdma_pmd);  RTE_PMD_REGISTER_PARAM_STRING(dpaa2_qdma,
>  	"no_prefetch=<int> ");
> -RTE_LOG_REGISTER_DEFAULT(dpaa_qdma2_logtype, INFO);
> +RTE_LOG_REGISTER_DEFAULT(dpaa2_qdma_logtype, INFO);
> --
> 2.43.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 9818 bytes
Desc: not available
URL: <http://mails.dpdk.org/archives/stable/attachments/20231218/6e9721c6/attachment.bin>


More information about the stable mailing list