mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master 1/2] dma: debug: fix compiler warning about pointer u64 cast
@ 2024-07-24  9:47 Ahmad Fatoum
  2024-07-24  9:47 ` [PATCH master 2/2] usb: gadget: fsl_udc: dma_map buffers instead of using dma_sync Ahmad Fatoum
  2024-07-30  8:13 ` [PATCH master 1/2] dma: debug: fix compiler warning about pointer u64 cast Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2024-07-24  9:47 UTC (permalink / raw)
  To: barebox; +Cc: ske, Ahmad Fatoum

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-30  8:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-24  9:47 [PATCH master 1/2] dma: debug: fix compiler warning about pointer u64 cast Ahmad Fatoum
2024-07-24  9:47 ` [PATCH master 2/2] usb: gadget: fsl_udc: dma_map buffers instead of using dma_sync Ahmad Fatoum
2024-07-30  8:13 ` [PATCH master 1/2] dma: debug: fix compiler warning about pointer u64 cast Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox