Skip to contentSkip to conversation

net: xilinx: axi_emac: fix compilation error when DEBUG enabled

PATCH New [email protected] 1 participant 1 message Aug 25, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: xilinx: axi_emac: fix compilation error when DEBUG enabled

From: Maksim Kiselev <[email protected]>

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]}
---
 drivers/net/xilinx_axi_emac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/xilinx_axi_emac.c +1 -1
index c8038ddef1b..00de2a61e85 100644
@@ -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;
Signature · 1 line
2.48.1