From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: ske@pengutronix.de, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH master 1/2] dma: debug: fix compiler warning about pointer u64 cast
Date: Wed, 24 Jul 2024 11:47:31 +0200 [thread overview]
Message-ID: <20240724094732.886245-1-a.fatoum@pengutronix.de> (raw)
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
next reply other threads:[~2024-07-24 9:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-24 9:47 Ahmad Fatoum [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240724094732.886245-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=ske@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox