* [PATCH v1] net: xilinx: axi_emac: fix compilation error when DEBUG enabled
@ 2025-08-25 9:22 bigunclemax
0 siblings, 0 replies; only message in thread
From: bigunclemax @ 2025-08-25 9:22 UTC (permalink / raw)
Cc: bigunclemax, Joe Hershberger, Ramon Fried, Michal Simek, Tom Rini,
Jerome Forissier, Siddharth Vadapalli, u-boot
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-25 9:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 9:22 [PATCH v1] net: xilinx: axi_emac: fix compilation error when DEBUG enabled bigunclemax
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox