[PATCH master 1/2] dma: debug: fix compiler warning about pointer u64 cast
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Jul 24 02:47:31 PDT 2024
All other prints in the file use the DMA address except for this single
print inside debug_dma_map(). Let's use the DMA address there as well to
fix the warning about casting a 32-bit pointer to a 64 bit integer and
to align error messages in case of non-1:1 mapped DMA addresses.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/dma/debug.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma/debug.c b/drivers/dma/debug.c
index 32a417504479..befe837d6cd8 100644
--- a/drivers/dma/debug.c
+++ b/drivers/dma/debug.c
@@ -131,7 +131,7 @@ void debug_dma_map(struct device *dev, void *addr,
if (!IS_ALIGNED(dev_addr, DMA_ALIGNMENT))
dma_dev_warn(dev, "Mapping insufficiently aligned %s buffer 0x%llx+0x%zx: %u bytes required!\n",
- dir2name[direction], (u64)addr, size, DMA_ALIGNMENT);
+ dir2name[direction], (u64)dev_addr, size, DMA_ALIGNMENT);
}
void debug_dma_unmap(struct device *dev, dma_addr_t addr,
--
2.39.2
More information about the barebox
mailing list