* [PATCH] soc: ti: k3-ringacc: Use correct error casting in k3_ringacc_dmarings_init
@ 2020-12-14 6:54 Peter Ujfalusi
2020-12-14 7:03 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Peter Ujfalusi @ 2020-12-14 6:54 UTC (permalink / raw)
To: vkoul, nm, ssantosh
Cc: grygorii.strashko, vigneshr, linux-kernel, t-kristo, dmaengine,
dan.j.williams, linux-arm-kernel
Use ERR_CAST() when devm_ioremap_resource() fails.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
Hi Vinod,
it came to my attention too late. This patch fixes the sparse warnig introduced
by the AM64 support in
https://lore.kernel.org/lkml/20201208090440.31792-1-peter.ujfalusi@ti.com/
Regards,
Peter
drivers/soc/ti/k3-ringacc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/soc/ti/k3-ringacc.c b/drivers/soc/ti/k3-ringacc.c
index c88c305ba367..b495b0d5d0fa 100644
--- a/drivers/soc/ti/k3-ringacc.c
+++ b/drivers/soc/ti/k3-ringacc.c
@@ -1476,7 +1476,7 @@ struct k3_ringacc *k3_ringacc_dmarings_init(struct platform_device *pdev,
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ringrt");
base_rt = devm_ioremap_resource(dev, res);
if (IS_ERR(base_rt))
- return base_rt;
+ return ERR_CAST(base_rt);
ringacc->rings = devm_kzalloc(dev,
sizeof(*ringacc->rings) *
--
Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] soc: ti: k3-ringacc: Use correct error casting in k3_ringacc_dmarings_init
2020-12-14 6:54 [PATCH] soc: ti: k3-ringacc: Use correct error casting in k3_ringacc_dmarings_init Peter Ujfalusi
@ 2020-12-14 7:03 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2020-12-14 7:03 UTC (permalink / raw)
To: Peter Ujfalusi
Cc: nm, grygorii.strashko, vigneshr, linux-kernel, t-kristo, ssantosh,
dmaengine, dan.j.williams, linux-arm-kernel
On 14-12-20, 08:54, Peter Ujfalusi wrote:
> Use ERR_CAST() when devm_ioremap_resource() fails.
>
> Reported-by: kernel test robot <lkp@intel.com>
Applied, thanks
--
~Vinod
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-14 7:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-14 6:54 [PATCH] soc: ti: k3-ringacc: Use correct error casting in k3_ringacc_dmarings_init Peter Ujfalusi
2020-12-14 7:03 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox