dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)
Subsystems (2)
Fabio Estevam
reviewerPATCH v2 1/1 dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)
From: Fabio Estevam <[email protected]>
Change the of_device_get_match_data() cast to (uintptr_t) to silence the following clang warning:
drivers/dma/imx-dma.c:1048:20: warning: cast to smaller integer type 'enum imx_dma_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
Reported-by kernel test robot <[email protected]>
Fixes 0ab785c894e6 ("dmaengine: imx-dma: Remove unused .id_table")
Signed-off-by Fabio Estevam <[email protected]>
---
Changes since v1:
- Improve the Subject to describe the change and not the effect of the change. (Vinod)
drivers/dma/imx-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/imx-dma.c +1 -1
@@ -1047,7 +1047,7 @@ static int __init imxdma_probe(struct platform_device *pdev)return -ENOMEM ; imxdma->dev = &pdev->dev; - imxdma->devtype = (enum imx_dma_type )of_device_get_match_data (&pdev->dev); + imxdma->devtype = (uintptr_t )of_device_get_match_data (&pdev->dev); res =platform_get_resource (pdev,IORESOURCE_MEM ,0 ); imxdma->base =devm_ioremap_resource (&pdev->dev, res);
Signature · 1 line
2.25.1
Quoted 4 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Change the
of_device_get_match_data()cast to (uintptr_t) to silence the following clang warning:
Applied, thanks
Signature · 1 line
~Vinod