vfio: Include "exec/address-spaces.h" directly in the source file
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Mon, 28 May 2018 23:26:59 +0000 (20:26 -0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 May 2018 17:12:13 +0000 (19:12 +0200)
No declaration of "hw/vfio/vfio-common.h" directly requires to include
the "exec/address-spaces.h" header.  To simplify dependencies and
ease the upcoming cleanup of "exec/address-spaces.h", directly include
it in the source file where the declaration are used.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20180528232719.4721-2-f4bug@amsat.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/vfio/ccw.c
hw/vfio/platform.c
include/hw/vfio/vfio-common.h

index e67392c5f949e60e85084711edc99cfeba9f74e0..76e4e8c65291dc8f771a975a2e4efd44c50abd73 100644 (file)
@@ -22,6 +22,7 @@
 #include "hw/vfio/vfio-common.h"
 #include "hw/s390x/s390-ccw.h"
 #include "hw/s390x/ccw-device.h"
+#include "exec/address-spaces.h"
 #include "qemu/error-report.h"
 
 #define TYPE_VFIO_CCW "vfio-ccw"
index 5c921c27bab1a2b0037b0efde7405c7f8959bf49..57c4a0ee2b58da70895adbdb57145dcac9bb5df1 100644 (file)
@@ -24,6 +24,7 @@
 #include "qemu/range.h"
 #include "sysemu/sysemu.h"
 #include "exec/memory.h"
+#include "exec/address-spaces.h"
 #include "qemu/queue.h"
 #include "hw/sysbus.h"
 #include "trace.h"
index d9360148e6a70bd5e11ca45bef6ff7a506edf684..8264a65fa5506166123861e9edae2582902d74d2 100644 (file)
@@ -22,7 +22,6 @@
 #define HW_VFIO_VFIO_COMMON_H
 
 #include "qemu-common.h"
-#include "exec/address-spaces.h"
 #include "exec/memory.h"
 #include "qemu/queue.h"
 #include "qemu/notify.h"