hw/net: fsl_etsec: Fix build error when HEX_DUMP is on
PATCH 1/1 hw/net: fsl_etsec: Fix build error when HEX_DUMP is on
From: Bin Meng <[email protected]>
"qemu-common.h" should be included to provide the forward declaration of qemu_hexdump() when HEX_DUMP is on.
Signed-off-by Bin Meng <[email protected]>
---
hw/net/fsl_etsec/etsec.c | 1 + hw/net/fsl_etsec/rings.c | 1 + 2 files changed, 2 insertions(+)
hw/net/fsl_etsec/etsec.c +1 -0
@@ -27,6 +27,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/irq.h" #include "hw/ptimer.h"
hw/net/fsl_etsec/rings.c +1 -0
@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "net/checksum.h" #include "qemu/log.h" #include "etsec.h"
Signature · 1 line
2.25.1
David Gibson
AppliedQuoted 4 lines · Bin Meng
From: Bin Meng <[email protected]>
"
qemu-common.h" should be included to provide the forward declaration ofqemu_hexdump()whenHEX_DUMPis on.
Applied to ppc-for-6.0, thanks.
Quoted 32 lines
Signed-off-by Bin Meng <[email protected]>---
hw/net/fsl_etsec/etsec.c | 1 + hw/net/fsl_etsec/rings.c | 1 + 2 files changed, 2 insertions(+)hw/net/fsl_etsec/etsec.c +1
-0@@ -27,6 +27,7 @@*/ #include "qemu/osdep.h" +#include "qemu-common.h" #include "hw/sysbus.h" #include "hw/irq.h" #include "hw/ptimer.h" hw/net/fsl_etsec/rings.c +1
-0@@ -22,6 +22,7 @@* THE SOFTWARE. */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "net/checksum.h" #include "qemu/log.h" #include "etsec.h"
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson