From a8d2532645cf5ce4f75981f81dfe363efc35d05c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 23 May 2019 16:35:08 +0200 Subject: Include qemu-common.h exactly where needed No header includes qemu-common.h after this commit, as prescribed by qemu-common.h's file comment. Signed-off-by: Markus Armbruster Message-Id: <20190523143508.25387-5-armbru@redhat.com> [Rebased with conflicts resolved automatically, except for include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and net/tap-bsd.c fixed up] --- net/checksum.c | 1 - net/colo-compare.c | 2 +- net/dump.c | 1 + net/eth.c | 1 - net/filter-buffer.c | 1 - net/filter-mirror.c | 1 - net/filter-rewriter.c | 1 - net/hub.h | 1 - net/l2tpv3.c | 1 - net/tap-bsd.c | 1 + net/tap-linux.c | 1 + net/tap_int.h | 1 - 12 files changed, 4 insertions(+), 9 deletions(-) (limited to 'net') diff --git a/net/checksum.c b/net/checksum.c index 273bc9c..aaa4000 100644 --- a/net/checksum.c +++ b/net/checksum.c @@ -16,7 +16,6 @@ */ #include "qemu/osdep.h" -#include "qemu-common.h" #include "net/checksum.h" #include "net/eth.h" diff --git a/net/colo-compare.c b/net/colo-compare.c index fcb4911..103297b 100644 --- a/net/colo-compare.c +++ b/net/colo-compare.c @@ -13,9 +13,9 @@ */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qemu/error-report.h" #include "trace.h" -#include "qemu-common.h" #include "qapi/error.h" #include "net/net.h" #include "net/eth.h" diff --git a/net/dump.c b/net/dump.c index cd34f51..23b3628 100644 --- a/net/dump.c +++ b/net/dump.c @@ -23,6 +23,7 @@ */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "clients.h" #include "qapi/error.h" #include "qemu/error-report.h" diff --git a/net/eth.c b/net/eth.c index ae5d881..0c1d413 100644 --- a/net/eth.c +++ b/net/eth.c @@ -18,7 +18,6 @@ #include "qemu/osdep.h" #include "net/eth.h" #include "net/checksum.h" -#include "qemu-common.h" #include "net/tap.h" void eth_setup_vlan_headers_ex(struct eth_header *ehdr, uint16_t vlan_tag, diff --git a/net/filter-buffer.c b/net/filter-buffer.c index f7265c5..88da78f 100644 --- a/net/filter-buffer.c +++ b/net/filter-buffer.c @@ -10,7 +10,6 @@ #include "net/filter.h" #include "net/queue.h" #include "qapi/error.h" -#include "qemu-common.h" #include "qemu/timer.h" #include "qemu/iov.h" #include "qapi/qapi-builtin-visit.h" diff --git a/net/filter-mirror.c b/net/filter-mirror.c index 3a61cf2..8d36009 100644 --- a/net/filter-mirror.c +++ b/net/filter-mirror.c @@ -12,7 +12,6 @@ #include "qemu/osdep.h" #include "net/filter.h" #include "net/net.h" -#include "qemu-common.h" #include "qapi/error.h" #include "qom/object.h" #include "qemu/main-loop.h" diff --git a/net/filter-rewriter.c b/net/filter-rewriter.c index b464abe..31da08a 100644 --- a/net/filter-rewriter.c +++ b/net/filter-rewriter.c @@ -14,7 +14,6 @@ #include "colo.h" #include "net/filter.h" #include "net/net.h" -#include "qemu-common.h" #include "qemu/error-report.h" #include "qom/object.h" #include "qemu/main-loop.h" diff --git a/net/hub.h b/net/hub.h index 6a16f04..66d3322 100644 --- a/net/hub.h +++ b/net/hub.h @@ -15,7 +15,6 @@ #ifndef NET_HUB_H #define NET_HUB_H -#include "qemu-common.h" NetClientState *net_hub_add_port(int hub_id, const char *name, NetClientState *hubpeer); diff --git a/net/l2tpv3.c b/net/l2tpv3.c index 81db24d..55fea17 100644 --- a/net/l2tpv3.c +++ b/net/l2tpv3.c @@ -29,7 +29,6 @@ #include "net/net.h" #include "clients.h" #include "qapi/error.h" -#include "qemu-common.h" #include "qemu/error-report.h" #include "qemu/option.h" #include "qemu/sockets.h" diff --git a/net/tap-bsd.c b/net/tap-bsd.c index 6c96922..5695e3d 100644 --- a/net/tap-bsd.c +++ b/net/tap-bsd.c @@ -23,6 +23,7 @@ */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "qapi/error.h" #include "tap_int.h" #include "qemu/cutils.h" diff --git a/net/tap-linux.c b/net/tap-linux.c index 535b1dd..941a45d 100644 --- a/net/tap-linux.c +++ b/net/tap-linux.c @@ -24,6 +24,7 @@ */ #include "qemu/osdep.h" +#include "qemu-common.h" #include "tap_int.h" #include "tap-linux.h" #include "net/tap.h" diff --git a/net/tap_int.h b/net/tap_int.h index 9f931d5..e3194b2 100644 --- a/net/tap_int.h +++ b/net/tap_int.h @@ -26,7 +26,6 @@ #ifndef NET_TAP_INT_H #define NET_TAP_INT_H -#include "qemu-common.h" #include "qapi/qapi-types-net.h" int tap_open(char *ifname, int ifname_size, int *vnet_hdr, -- cgit v1.1