all: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 12:00:47 +0000 (12:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 12:43:05 +0000 (12:43 +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>
---
This just catches a couple of stragglers since I posted
the last clean-includes patchset last week.

hw/vfio/amd-xgbe.c
tests/boot-sector.c
tests/pxe-test.c

index 53451eb22d0f13aa8567101e7b010ca79cab53e5..2c60310cf960151cb9ff701456bd0fbb1bdeea29 100644 (file)
@@ -11,6 +11,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "hw/vfio/vfio-amd-xgbe.h"
 
 static void amd_xgbe_realize(DeviceState *dev, Error **errp)
index 0b48bb34bf40b4fcb3513f2e0b32e6c4071c20fa..3ffe2987ff09a35f2d99d15cffda9d02358d440b 100644 (file)
@@ -10,9 +10,8 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  */
+#include "qemu/osdep.h"
 #include "boot-sector.h"
-#include <string.h>
-#include <stdio.h>
 #include "qemu-common.h"
 #include "libqtest.h"
 
index fa430958ea46eb6fec334b1100f4f4e297c87c80..875e4c4a263233c9a4da73d4e6a2dc4ee690fa5d 100644 (file)
@@ -11,8 +11,7 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include <string.h>
-#include <stdio.h>
+#include "qemu/osdep.h"
 #include <glib.h>
 #include <glib/gstdio.h>
 #include "qemu-common.h"