aboutsummaryrefslogtreecommitdiff
path: root/hw/net
diff options
context:
space:
mode:
authorBin Meng <bin.meng@windriver.com>2021-02-28 13:04:31 +0800
committerDavid Gibson <david@gibson.dropbear.id.au>2021-03-10 09:07:09 +1100
commitf149c9b7f942c56f30e66be034f669b95255474e (patch)
tree74b4529d104ff2b1b0f14157e356f0fd6febbb7b /hw/net
parentfe1831eff8a41e96044fe98a6b0e232daa22ef83 (diff)
downloadqemu-f149c9b7f942c56f30e66be034f669b95255474e.zip
qemu-f149c9b7f942c56f30e66be034f669b95255474e.tar.gz
qemu-f149c9b7f942c56f30e66be034f669b95255474e.tar.bz2
hw/net: fsl_etsec: Fix build error when HEX_DUMP is on
"qemu-common.h" should be included to provide the forward declaration of qemu_hexdump() when HEX_DUMP is on. Signed-off-by: Bin Meng <bin.meng@windriver.com> Message-Id: <20210228050431.24647-1-bmeng.cn@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/net')
-rw-r--r--hw/net/fsl_etsec/etsec.c1
-rw-r--r--hw/net/fsl_etsec/rings.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c
index 93886bb..bd9d62b 100644
--- a/hw/net/fsl_etsec/etsec.c
+++ b/hw/net/fsl_etsec/etsec.c
@@ -27,6 +27,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu-common.h"
#include "hw/sysbus.h"
#include "hw/irq.h"
#include "hw/ptimer.h"
diff --git a/hw/net/fsl_etsec/rings.c b/hw/net/fsl_etsec/rings.c
index fe055d3..d6be0d7 100644
--- a/hw/net/fsl_etsec/rings.c
+++ b/hw/net/fsl_etsec/rings.c
@@ -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"