Patch "dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)" has been added to the 5.18-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)

to the 5.18-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     dmaengine-imx-dma-cast-of_device_get_match_data-with.patch
and it can be found in the queue-5.18 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7891b728f9718947760b6e841a99dbe7b8788480
Author: Fabio Estevam <festevam@xxxxxxx>
Date:   Wed Jul 6 08:13:27 2022 -0300

    dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t)
    
    [ Upstream commit c3266ee185b59e5aab3e0f982e5b7f95d31555a7 ]
    
    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 <lkp@xxxxxxxxx>
    Fixes: 0ab785c894e6 ("dmaengine: imx-dma: Remove unused .id_table")
    Signed-off-by: Fabio Estevam <festevam@xxxxxxx>
    Link: https://lore.kernel.org/r/20220706111327.940764-1-festevam@xxxxxxxxx
    Signed-off-by: Vinod Koul <vkoul@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index 2ddc31e64db0..da31e73d24d4 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -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);



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux