* [Qemu-devel] [PATCH] all: Clean up includes
@ 2016-02-23 12:41 Peter Maydell
2016-02-23 13:35 ` Eric Blake
0 siblings, 1 reply; 2+ messages in thread
From: Peter Maydell @ 2016-02-23 12:41 UTC (permalink / raw)
To: qemu-devel; +Cc: patches
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. I'm going to
apply things to master directly shortly...
hw/vfio/amd-xgbe.c | 1 +
tests/boot-sector.c | 3 +--
tests/pxe-test.c | 3 +--
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/hw/vfio/amd-xgbe.c b/hw/vfio/amd-xgbe.c
index 53451eb..2c60310 100644
--- a/hw/vfio/amd-xgbe.c
+++ b/hw/vfio/amd-xgbe.c
@@ -11,6 +11,7 @@
*
*/
+#include "qemu/osdep.h"
#include "hw/vfio/vfio-amd-xgbe.h"
static void amd_xgbe_realize(DeviceState *dev, Error **errp)
diff --git a/tests/boot-sector.c b/tests/boot-sector.c
index 0b48bb3..3ffe298 100644
--- a/tests/boot-sector.c
+++ b/tests/boot-sector.c
@@ -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"
diff --git a/tests/pxe-test.c b/tests/pxe-test.c
index fa43095..875e4c4 100644
--- a/tests/pxe-test.c
+++ b/tests/pxe-test.c
@@ -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"
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-23 13:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23 12:41 [Qemu-devel] [PATCH] all: Clean up includes Peter Maydell
2016-02-23 13:35 ` Eric Blake
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).