From 9b8bfe21bee37ced21aa57c89388c2ebea8c3f31 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Tue, 26 Jan 2016 18:17:07 +0000 Subject: virtio: Clean up includes Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Signed-off-by: Peter Maydell Message-id: 1453832250-766-15-git-send-email-peter.maydell@linaro.org --- hw/virtio/dataplane/vring.c | 1 + hw/virtio/vhost-backend.c | 1 + hw/virtio/vhost-user.c | 3 +-- hw/virtio/vhost.c | 1 + hw/virtio/virtio-balloon.c | 1 + hw/virtio/virtio-bus.c | 1 + hw/virtio/virtio-mmio.c | 1 + hw/virtio/virtio-pci.c | 2 +- hw/virtio/virtio-rng.c | 1 + hw/virtio/virtio.c | 2 +- 10 files changed, 10 insertions(+), 4 deletions(-) (limited to 'hw/virtio') diff --git a/hw/virtio/dataplane/vring.c b/hw/virtio/dataplane/vring.c index 23f667ef4b..1a78df10fa 100644 --- a/hw/virtio/dataplane/vring.c +++ b/hw/virtio/dataplane/vring.c @@ -14,6 +14,7 @@ * This work is licensed under the terms of the GNU GPL, version 2. */ +#include "qemu/osdep.h" #include "trace.h" #include "hw/hw.h" #include "exec/memory.h" diff --git a/hw/virtio/vhost-backend.c b/hw/virtio/vhost-backend.c index b734a601a1..b35890289f 100644 --- a/hw/virtio/vhost-backend.c +++ b/hw/virtio/vhost-backend.c @@ -8,6 +8,7 @@ * */ +#include "qemu/osdep.h" #include "hw/virtio/vhost.h" #include "hw/virtio/vhost-backend.h" #include "qemu/error-report.h" diff --git a/hw/virtio/vhost-user.c b/hw/virtio/vhost-user.c index 1b6c5ac238..7fde1370e0 100644 --- a/hw/virtio/vhost-user.c +++ b/hw/virtio/vhost-user.c @@ -8,6 +8,7 @@ * */ +#include "qemu/osdep.h" #include "hw/virtio/vhost.h" #include "hw/virtio/vhost-backend.h" #include "hw/virtio/virtio-net.h" @@ -18,8 +19,6 @@ #include "exec/ram_addr.h" #include "migration/migration.h" -#include -#include #include #include #include diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index de29968a79..7dff75547d 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -13,6 +13,7 @@ * GNU GPL, version 2 or (at your option) any later version. */ +#include "qemu/osdep.h" #include "hw/virtio/vhost.h" #include "hw/hw.h" #include "qemu/atomic.h" diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c index 9671635e63..f5f25a95fc 100644 --- a/hw/virtio/virtio-balloon.c +++ b/hw/virtio/virtio-balloon.c @@ -13,6 +13,7 @@ * */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "qemu/timer.h" #include "qemu-common.h" diff --git a/hw/virtio/virtio-bus.c b/hw/virtio/virtio-bus.c index 81c7cdd507..574f0e23f8 100644 --- a/hw/virtio/virtio-bus.c +++ b/hw/virtio/virtio-bus.c @@ -22,6 +22,7 @@ * */ +#include "qemu/osdep.h" #include "hw/hw.h" #include "qemu/error-report.h" #include "hw/qdev.h" diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c index 18660b07b1..d4cd91f8c4 100644 --- a/hw/virtio/virtio-mmio.c +++ b/hw/virtio/virtio-mmio.c @@ -19,6 +19,7 @@ * with this program; if not, see . */ +#include "qemu/osdep.h" #include "hw/sysbus.h" #include "hw/virtio/virtio.h" #include "qemu/host-utils.h" diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index 94667e6256..5494ff4a49 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -15,7 +15,7 @@ * GNU GPL, version 2 or (at your option) any later version. */ -#include +#include "qemu/osdep.h" #include "standard-headers/linux/virtio_pci.h" #include "hw/virtio/virtio.h" diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c index 97d1541918..a80fb89069 100644 --- a/hw/virtio/virtio-rng.c +++ b/hw/virtio/virtio-rng.c @@ -9,6 +9,7 @@ * top-level directory. */ +#include "qemu/osdep.h" #include "qemu/iov.h" #include "hw/qdev.h" #include "hw/virtio/virtio.h" diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index bd6b4df9ae..63a7b6d7ba 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -11,7 +11,7 @@ * */ -#include +#include "qemu/osdep.h" #include "trace.h" #include "exec/address-spaces.h" -- cgit v1.2.3