[PATCH master 1/2] dma: debug: fix compiler warning about pointer u64 cast

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

 



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@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux