From: Limeng <[email protected]> refer to raspberrypi SDK kernel, branch rpi-5.4.y, commit e89769eb3d4b("bcm2835-dma: Add proper 40-bit DMA support"). Add a casting before using variable base to fix the build warning.
Signed-off-by: Meng Li <[email protected]> --- drivers/dma/bcm2835-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/bcm2835-dma.c b/drivers/dma/bcm2835-dma.c index 1e2c597e038f..acbcbb68c22b 100644 --- a/drivers/dma/bcm2835-dma.c +++ b/drivers/dma/bcm2835-dma.c @@ -1178,7 +1178,7 @@ static int bcm2835_dma_probe(struct platform_device *pdev) return PTR_ERR(base); /* The set of channels can be split across multiple instances. */ - chan_start = ((u32)base / BCM2835_DMA_CHAN_SIZE) & 0xf; + chan_start = ((u32)(uintptr_t)base / BCM2835_DMA_CHAN_SIZE) & 0xf; base -= BCM2835_DMA_CHAN(chan_start); chan_count = resource_size(res) / BCM2835_DMA_CHAN_SIZE; chan_end = min(chan_start + chan_count, -- 2.17.1 -- _______________________________________________ linux-yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/linux-yocto
