[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-trivial] [PULL 28/61] hw: use "qemu/osdep.h" as first #include in
From: |
Michael Tokarev |
Subject: |
[Qemu-trivial] [PULL 28/61] hw: use "qemu/osdep.h" as first #include in source files |
Date: |
Mon, 18 Dec 2017 00:27:33 +0300 |
From: Philippe Mathieu-Daudé <address@hidden>
applied using ./scripts/clean-includes
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Acked-by: David Gibson <address@hidden>
Acked-by: Cornelia Huck <address@hidden>
---
hw/acpi/ipmi-stub.c | 1 +
hw/audio/fmopl.c | 1 -
hw/cpu/core.c | 1 +
hw/ppc/spapr_cpu_core.c | 1 +
hw/smbios/smbios_type_38-stub.c | 1 +
hw/vfio/ccw.c | 2 +-
hw/virtio/vhost-vsock.c | 2 +-
7 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/hw/acpi/ipmi-stub.c b/hw/acpi/ipmi-stub.c
index 98b6dcee0d..f525f71c2d 100644
--- a/hw/acpi/ipmi-stub.c
+++ b/hw/acpi/ipmi-stub.c
@@ -7,6 +7,7 @@
* See the COPYING file in the top-level directory.
*/
+#include "qemu/osdep.h"
#include "hw/acpi/ipmi.h"
void build_acpi_ipmi_devices(Aml *table, BusState *bus)
diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c
index 5cfb6a96dd..9f50a89b4a 100644
--- a/hw/audio/fmopl.c
+++ b/hw/audio/fmopl.c
@@ -34,7 +34,6 @@
#include <math.h>
//#include "driver.h" /* use M.A.M.E. */
#include "fmopl.h"
-#include "qemu/osdep.h"
#ifndef PI
#define PI 3.14159265358979323846
#endif
diff --git a/hw/cpu/core.c b/hw/cpu/core.c
index bd578ab80c..7e42e2c87a 100644
--- a/hw/cpu/core.c
+++ b/hw/cpu/core.c
@@ -6,6 +6,7 @@
* 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 "hw/cpu/core.h"
#include "qapi/visitor.h"
#include "qapi/error.h"
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
index 032438b9ce..ac19b2e0b7 100644
--- a/hw/ppc/spapr_cpu_core.c
+++ b/hw/ppc/spapr_cpu_core.c
@@ -6,6 +6,7 @@
* 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 "hw/cpu/core.h"
#include "hw/ppc/spapr_cpu_core.h"
#include "target/ppc/cpu.h"
diff --git a/hw/smbios/smbios_type_38-stub.c b/hw/smbios/smbios_type_38-stub.c
index 9528c2c28e..5b83c9b1f1 100644
--- a/hw/smbios/smbios_type_38-stub.c
+++ b/hw/smbios/smbios_type_38-stub.c
@@ -7,6 +7,7 @@
* See the COPYING file in the top-level directory.
*/
+#include "qemu/osdep.h"
#include "hw/smbios/ipmi.h"
void smbios_build_type_38_table(void)
diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c
index 636729c03d..16713f2c52 100644
--- a/hw/vfio/ccw.c
+++ b/hw/vfio/ccw.c
@@ -11,11 +11,11 @@
* directory.
*/
+#include "qemu/osdep.h"
#include <linux/vfio.h>
#include <linux/vfio_ccw.h>
#include <sys/ioctl.h>
-#include "qemu/osdep.h"
#include "qapi/error.h"
#include "hw/sysbus.h"
#include "hw/vfio/vfio.h"
diff --git a/hw/virtio/vhost-vsock.c b/hw/virtio/vhost-vsock.c
index 5ec1c6a2a2..aa5af927e1 100644
--- a/hw/virtio/vhost-vsock.c
+++ b/hw/virtio/vhost-vsock.c
@@ -11,8 +11,8 @@
* top-level directory.
*/
-#include <sys/ioctl.h>
#include "qemu/osdep.h"
+#include <sys/ioctl.h>
#include "standard-headers/linux/virtio_vsock.h"
#include "qapi/error.h"
#include "hw/virtio/virtio-bus.h"
--
2.11.0
- [Qemu-trivial] [PULL 54/61] hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h", (continued)
- [Qemu-trivial] [PULL 54/61] hw/display/vga: "vga.h" only contains registers defs, rename it "vga_regs.h", Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 61/61] misc: drop old i386 dependency, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 11/61] Makefile: use $(MAKE) variable, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 32/61] misc: remove duplicated includes, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 21/61] MAINTAINERS: add an entry for the i82374 (southbridge), Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 26/61] MAINTAINERS: add entries for timer/m48t59, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 03/61] disas/arm: fix 'instuction' typo in comment, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 25/61] MAINTAINERS: add an entry for input/pckbd.c, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 57/61] hw/net/ne2000: extract ne2k-isa code from i386/pc to ne2000-isa.c, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 44/61] hw/ide: remove old i386 dependency, Michael Tokarev, 2017/12/17
- [Qemu-trivial] [PULL 28/61] hw: use "qemu/osdep.h" as first #include in source files,
Michael Tokarev <=
- [Qemu-trivial] [PULL 56/61] hw/display/vga: extract public API from i386/pc to "hw/display/vga.h", Michael Tokarev, 2017/12/18
- [Qemu-trivial] [PULL v3 00/60] Trivial patches for 2017-12-18, Michael Tokarev, 2017/12/18