Skip to contentSkip to conversation

net: Fix build error when DEBUG_NET is on

PATCH Applied Bin Meng 2 participants 2 messages Feb 28, 2021 – Mar 2, 2021 Networking

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 net: Fix build error when DEBUG_NET is on

From: Bin Meng <[email protected]>

"qemu-common.h" should be included to provide the forward declaration of qemu_hexdump() when DEBUG_NET is on.

---

Changes in v2:
- add "Reviewed-By" tag

 net/net.c | 1 +
 1 file changed, 1 insertion(+)
net/net.c +1 -0
index fb7b7dcc25..32d71c1172 100644
@@ -23,6 +23,7 @@
  */
 
 #include "qemu/osdep.h"
+#include "qemu-common.h"
 
 #include "net/net.h"
 #include "clients.h"
Signature · 1 line
2.25.1
Applied
#1 lore raw
Quoted 7 lines · Bin Meng

From: Bin Meng <[email protected]>

"qemu-common.h" should be included to provide the forward declaration of qemu_hexdump() when DEBUG_NET is on.

Applied.

Thanks

Quoted 21 lines

---

Changes in v2:
- add "Reviewed-By" tag

  net/net.c | 1 +
  1 file changed, 1 insertion(+)
net/net.c +1 -0
index fb7b7dcc25..32d71c1172 100644
@@ -23,6 +23,7 @@
   */
 
  #include "qemu/osdep.h"
+#include "qemu-common.h"
 
  #include "net/net.h"
  #include "clients.h"