U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: bigunclemax@gmail.com
Cc: bigunclemax@gmail.com, Joe Hershberger <joe.hershberger@ni.com>,
	Ramon Fried <rfried.dev@gmail.com>,
	Michal Simek <michal.simek@amd.com>,
	Tom Rini <trini@konsulko.com>,
	Jerome Forissier <jerome.forissier@linaro.org>,
	Siddharth Vadapalli <s-vadapalli@ti.com>,
	u-boot@lists.denx.de
Subject: [PATCH v1] net: xilinx: axi_emac: fix compilation error when DEBUG enabled
Date: Mon, 25 Aug 2025 12:22:36 +0300	[thread overview]
Message-ID: <20250825092236.46272-3-bigunclemax@gmail.com> (raw)

From: Maksim Kiselev <bigunclemax@gmail.com>

Fix GCC compiation error when DEBUG enabled:

drivers/net/xilinx_axi_emac.c:800:22: error: passing argument 1
of ‘print_buffer’ makes integer from pointer without
a cast [-Wint-conversion]
    800 |         print_buffer(&rxframe, &rxframe[0], 1, length, 16);
        |                      ^~~~~~~~
        |                      |
        |                      u8 (*)[1536] {aka unsigned char (*)[1536]}

Signed-off-by: Maksim Kiselev <bigunclemax@gmail.com>
---
 drivers/net/xilinx_axi_emac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c
index c8038ddef1b..00de2a61e85 100644
--- a/drivers/net/xilinx_axi_emac.c
+++ b/drivers/net/xilinx_axi_emac.c
@@ -764,7 +764,7 @@ static int axiemac_recv(struct udevice *dev, int flags, uchar **packetp)
 		length = rx_bd.status & XAXIDMA_BD_STS_ACTUAL_LEN_MASK;
 
 #ifdef DEBUG
-	print_buffer(&rxframe, &rxframe[0], 1, length, 16);
+	print_buffer((ulong)&rxframe, &rxframe[0], 1, length, 16);
 #endif
 
 	*packetp = rxframe;
-- 
2.48.1


                 reply	other threads:[~2025-08-25  9:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20250825092236.46272-3-bigunclemax@gmail.com \
    --to=bigunclemax@gmail.com \
    --cc=jerome.forissier@linaro.org \
    --cc=joe.hershberger@ni.com \
    --cc=michal.simek@amd.com \
    --cc=rfried.dev@gmail.com \
    --cc=s-vadapalli@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.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