net: xilinx: axi_emac: fix compilation error when DEBUG enabled
Subsystems (2)
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]}Signed-off-by Maksim Kiselev <[email protected]>
--- drivers/net/xilinx_axi_emac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/xilinx_axi_emac.c +1 -1
@@ -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