hw/vfio: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 26 Jan 2016 18:17:14 +0000 (18:17 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 Jan 2016 15:07:24 +0000 (15:07 +0000)
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 <peter.maydell@linaro.org>
Message-id: 1453832250-766-22-git-send-email-peter.maydell@linaro.org

hw/vfio/calxeda-xgmac.c
hw/vfio/common.c
hw/vfio/pci-quirks.c
hw/vfio/pci.c
hw/vfio/platform.c

index eb914f0d0bcb295f4a83309c99398d37fdf12012..bb15d588e529d2a4d7c4a40e792a911fde4597a3 100644 (file)
@@ -11,6 +11,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "hw/vfio/vfio-calxeda-xgmac.h"
 
 static void calxeda_xgmac_realize(DeviceState *dev, Error **errp)
index 6797208cc12fb51283bc2f84d1123309594b9a03..607ec70be390e401a611624931f0b4548adc838f 100644 (file)
@@ -18,6 +18,7 @@
  *  Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com)
  */
 
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <linux/vfio.h>
index e117c41fbe64fe6ab4c77042a0167e358adad257..48155277c6eacd01ad2f3bfabba7fb5ba893b3d6 100644 (file)
@@ -10,6 +10,7 @@
  * the COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include "pci.h"
 #include "trace.h"
 #include "qemu/range.h"
index e66c47ff6aeca85974ffa8670517dfad9d61542b..49f3d2d2392b7417351f915ddd75c7d6c9a5c33d 100644 (file)
  *  Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com)
  */
 
+#include "qemu/osdep.h"
 #include <linux/vfio.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <unistd.h>
 
-#include "config.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msix.h"
 #include "hw/pci/pci_bridge.h"
index 289b498ca91dd0cddd09f98e2de8c7baf8413bd6..ebc9dcbb993c3547bda4a5da8f55e2b4e4a5265c 100644 (file)
@@ -14,6 +14,7 @@
  *  Copyright Red Hat, Inc. 2012
  */
 
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 #include <linux/vfio.h>