Преглед на файлове

x86: Clean up includes

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-11-git-send-email-peter.maydell@linaro.org
Peter Maydell преди 9 години
родител
ревизия
b6a0aa0537
променени са 75 файла, в които са добавени 75 реда и са изтрити 24 реда
  1. 1 0
      hw/acpi/acpi_interface.c
  2. 1 5
      hw/acpi/aml-build.c
  3. 1 0
      hw/acpi/bios-linker-loader.c
  4. 1 0
      hw/acpi/core.c
  5. 1 0
      hw/acpi/cpu_hotplug.c
  6. 1 0
      hw/acpi/cpu_hotplug_acpi_table.c
  7. 1 0
      hw/acpi/ich9.c
  8. 1 0
      hw/acpi/memory_hotplug.c
  9. 1 1
      hw/acpi/memory_hotplug_acpi_table.c
  10. 1 0
      hw/acpi/nvdimm.c
  11. 1 0
      hw/acpi/pcihp.c
  12. 1 0
      hw/acpi/piix4.c
  13. 1 0
      hw/acpi/tco.c
  14. 1 0
      hw/char/debugcon.c
  15. 1 0
      hw/char/parallel.c
  16. 1 0
      hw/char/serial-isa.c
  17. 1 0
      hw/char/serial-pci.c
  18. 1 0
      hw/char/serial.c
  19. 1 0
      hw/dma/i8257.c
  20. 1 0
      hw/i2c/pm_smbus.c
  21. 1 0
      hw/i2c/smbus_ich9.c
  22. 1 2
      hw/i386/acpi-build.c
  23. 1 0
      hw/i386/intel_iommu.c
  24. 1 0
      hw/i386/kvm/apic.c
  25. 1 0
      hw/i386/kvm/clock.c
  26. 1 0
      hw/i386/kvm/i8254.c
  27. 1 0
      hw/i386/kvm/i8259.c
  28. 1 0
      hw/i386/kvm/ioapic.c
  29. 1 4
      hw/i386/kvm/pci-assign.c
  30. 1 0
      hw/i386/kvmvapic.c
  31. 1 0
      hw/i386/multiboot.c
  32. 1 0
      hw/i386/pc.c
  33. 1 0
      hw/i386/pc_piix.c
  34. 1 0
      hw/i386/pc_q35.c
  35. 1 0
      hw/i386/pc_sysfw.c
  36. 1 4
      hw/i386/pci-assign-load-rom.c
  37. 1 0
      hw/i386/xen/xen_apic.c
  38. 1 0
      hw/i386/xen/xen_platform.c
  39. 1 0
      hw/i386/xen/xen_pvdevice.c
  40. 1 0
      hw/intc/apic.c
  41. 1 0
      hw/intc/apic_common.c
  42. 1 0
      hw/intc/ioapic.c
  43. 1 0
      hw/intc/ioapic_common.c
  44. 1 0
      hw/isa/lpc_ich9.c
  45. 1 0
      hw/isa/piix4.c
  46. 1 0
      hw/misc/debugexit.c
  47. 1 1
      hw/misc/pc-testdev.c
  48. 1 0
      hw/misc/sga.c
  49. 1 0
      hw/pci-host/pam.c
  50. 1 0
      hw/pci-host/piix.c
  51. 1 0
      hw/pci-host/q35.c
  52. 1 0
      hw/timer/hpet.c
  53. 1 0
      hw/timer/i8254.c
  54. 1 0
      hw/timer/i8254_common.c
  55. 1 0
      hw/timer/mc146818rtc.c
  56. 1 0
      target-i386/arch_dump.c
  57. 1 0
      target-i386/arch_memory_mapping.c
  58. 1 0
      target-i386/bpt_helper.c
  59. 1 0
      target-i386/cc_helper.c
  60. 1 0
      target-i386/excp_helper.c
  61. 1 0
      target-i386/fpu_helper.c
  62. 1 1
      target-i386/gdbstub.c
  63. 1 0
      target-i386/helper.c
  64. 1 0
      target-i386/hyperv.c
  65. 1 0
      target-i386/int_helper.c
  66. 1 0
      target-i386/kvm-stub.c
  67. 1 1
      target-i386/kvm.c
  68. 1 0
      target-i386/machine.c
  69. 1 0
      target-i386/mem_helper.c
  70. 1 0
      target-i386/misc_helper.c
  71. 1 0
      target-i386/monitor.c
  72. 1 0
      target-i386/seg_helper.c
  73. 1 0
      target-i386/smm_helper.c
  74. 1 0
      target-i386/svm_helper.c
  75. 1 5
      target-i386/translate.c

+ 1 - 0
hw/acpi/acpi_interface.c

@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
 #include "hw/acpi/acpi_dev_interface.h"
 #include "hw/acpi/acpi_dev_interface.h"
 #include "qemu/module.h"
 #include "qemu/module.h"
 
 

+ 1 - 5
hw/acpi/aml-build.c

@@ -19,12 +19,8 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include <glib/gprintf.h>
 #include <glib/gprintf.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <assert.h>
-#include <stdbool.h>
-#include <string.h>
 #include "hw/acpi/aml-build.h"
 #include "hw/acpi/aml-build.h"
 #include "qemu/bswap.h"
 #include "qemu/bswap.h"
 #include "qemu/bitops.h"
 #include "qemu/bitops.h"

+ 1 - 0
hw/acpi/bios-linker-loader.c

@@ -18,6 +18,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "hw/acpi/bios-linker-loader.h"
 #include "hw/acpi/bios-linker-loader.h"
 #include "hw/nvram/fw_cfg.h"
 #include "hw/nvram/fw_cfg.h"

+ 1 - 0
hw/acpi/core.c

@@ -18,6 +18,7 @@
  * Contributions after 2012-01-13 are licensed under the terms of the
  * Contributions after 2012-01-13 are licensed under the terms of the
  * GNU GPL, version 2 or (at your option) any later version.
  * GNU GPL, version 2 or (at your option) any later version.
  */
  */
+#include "qemu/osdep.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"

+ 1 - 0
hw/acpi/cpu_hotplug.c

@@ -9,6 +9,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/acpi/cpu_hotplug.h"
 #include "hw/acpi/cpu_hotplug.h"
 
 

+ 1 - 0
hw/acpi/cpu_hotplug_acpi_table.c

@@ -13,6 +13,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/acpi/cpu_hotplug.h"
 #include "hw/acpi/cpu_hotplug.h"
 
 
 void build_cpu_hotplug_aml(Aml *ctx)
 void build_cpu_hotplug_aml(Aml *ctx)

+ 1 - 0
hw/acpi/ich9.c

@@ -23,6 +23,7 @@
  * Contributions after 2012-01-13 are licensed under the terms of the
  * Contributions after 2012-01-13 are licensed under the terms of the
  * GNU GPL, version 2 or (at your option) any later version.
  * GNU GPL, version 2 or (at your option) any later version.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "qapi/visitor.h"
 #include "qapi/visitor.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"

+ 1 - 0
hw/acpi/memory_hotplug.c

@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
 #include "hw/acpi/memory_hotplug.h"
 #include "hw/acpi/memory_hotplug.h"
 #include "hw/acpi/pc-hotplug.h"
 #include "hw/acpi/pc-hotplug.h"
 #include "hw/mem/pc-dimm.h"
 #include "hw/mem/pc-dimm.h"

+ 1 - 1
hw/acpi/memory_hotplug_acpi_table.c

@@ -9,7 +9,7 @@
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
 
 
-#include <stdbool.h>
+#include "qemu/osdep.h"
 #include "hw/acpi/memory_hotplug.h"
 #include "hw/acpi/memory_hotplug.h"
 #include "include/hw/acpi/pc-hotplug.h"
 #include "include/hw/acpi/pc-hotplug.h"
 #include "hw/boards.h"
 #include "hw/boards.h"

+ 1 - 0
hw/acpi/nvdimm.c

@@ -26,6 +26,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>
  * License along with this library; if not, see <http://www.gnu.org/licenses/>
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/acpi/acpi.h"
 #include "hw/acpi/acpi.h"
 #include "hw/acpi/aml-build.h"
 #include "hw/acpi/aml-build.h"
 #include "hw/mem/nvdimm.h"
 #include "hw/mem/nvdimm.h"

+ 1 - 0
hw/acpi/pcihp.c

@@ -24,6 +24,7 @@
  * GNU GPL, version 2 or (at your option) any later version.
  * GNU GPL, version 2 or (at your option) any later version.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/acpi/pcihp.h"
 #include "hw/acpi/pcihp.h"
 
 
 #include "hw/hw.h"
 #include "hw/hw.h"

+ 1 - 0
hw/acpi/piix4.c

@@ -18,6 +18,7 @@
  * Contributions after 2012-01-13 are licensed under the terms of the
  * Contributions after 2012-01-13 are licensed under the terms of the
  * GNU GPL, version 2 or (at your option) any later version.
  * GNU GPL, version 2 or (at your option) any later version.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/isa/apm.h"
 #include "hw/isa/apm.h"

+ 1 - 0
hw/acpi/tco.c

@@ -6,6 +6,7 @@
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "sysemu/watchdog.h"
 #include "sysemu/watchdog.h"
 #include "hw/i386/ich9.h"
 #include "hw/i386/ich9.h"

+ 1 - 0
hw/char/debugcon.c

@@ -24,6 +24,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "sysemu/char.h"
 #include "sysemu/char.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"

+ 1 - 0
hw/char/parallel.c

@@ -22,6 +22,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "sysemu/char.h"
 #include "sysemu/char.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"

+ 1 - 0
hw/char/serial-isa.c

@@ -23,6 +23,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/char/serial.h"
 #include "hw/char/serial.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"
 
 

+ 1 - 0
hw/char/serial-pci.c

@@ -25,6 +25,7 @@
 
 
 /* see docs/specs/pci-serial.txt */
 /* see docs/specs/pci-serial.txt */
 
 
+#include "qemu/osdep.h"
 #include "hw/char/serial.h"
 #include "hw/char/serial.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 
 

+ 1 - 0
hw/char/serial.c

@@ -23,6 +23,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/char/serial.h"
 #include "hw/char/serial.h"
 #include "sysemu/char.h"
 #include "sysemu/char.h"
 #include "qemu/timer.h"
 #include "qemu/timer.h"

+ 1 - 0
hw/dma/i8257.c

@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"
 #include "qemu/main-loop.h"
 #include "qemu/main-loop.h"

+ 1 - 0
hw/i2c/pm_smbus.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see
  * License along with this library; if not, see
  * <http://www.gnu.org/licenses/>.
  * <http://www.gnu.org/licenses/>.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/i2c/pm_smbus.h"
 #include "hw/i2c/pm_smbus.h"

+ 1 - 0
hw/i2c/smbus_ich9.c

@@ -24,6 +24,7 @@
  * GNU GPL, version 2 or (at your option) any later version.
  * GNU GPL, version 2 or (at your option) any later version.
  *
  *
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/i2c/pm_smbus.h"
 #include "hw/i2c/pm_smbus.h"

+ 1 - 2
hw/i386/acpi-build.c

@@ -20,12 +20,11 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "acpi-build.h"
 #include "acpi-build.h"
-#include <stddef.h>
 #include <glib.h>
 #include <glib.h>
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "qemu/bitmap.h"
 #include "qemu/bitmap.h"
-#include "qemu/osdep.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 #include "qom/cpu.h"
 #include "qom/cpu.h"

+ 1 - 0
hw/i386/intel_iommu.c

@@ -19,6 +19,7 @@
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  * with this program; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"
 #include "exec/address-spaces.h"
 #include "exec/address-spaces.h"
 #include "intel_iommu_internal.h"
 #include "intel_iommu_internal.h"

+ 1 - 0
hw/i386/kvm/apic.c

@@ -9,6 +9,7 @@
  * This work is licensed under the terms of the GNU GPL version 2.
  * This work is licensed under the terms of the GNU GPL version 2.
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msi.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"

+ 1 - 0
hw/i386/kvm/clock.c

@@ -13,6 +13,7 @@
  * GNU GPL, version 2 or (at your option) any later version.
  * GNU GPL, version 2 or (at your option) any later version.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "qemu/host-utils.h"
 #include "qemu/host-utils.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"

+ 1 - 0
hw/i386/kvm/i8254.c

@@ -22,6 +22,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "qemu/timer.h"
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "hw/timer/i8254.h"
 #include "hw/timer/i8254.h"

+ 1 - 0
hw/i386/kvm/i8259.c

@@ -9,6 +9,7 @@
  * This work is licensed under the terms of the GNU GPL version 2.
  * This work is licensed under the terms of the GNU GPL version 2.
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/isa/i8259_internal.h"
 #include "hw/isa/i8259_internal.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/i386/apic_internal.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"

+ 1 - 0
hw/i386/kvm/ioapic.c

@@ -10,6 +10,7 @@
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "monitor/monitor.h"
 #include "monitor/monitor.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/ioapic_internal.h"
 #include "hw/i386/ioapic_internal.h"

+ 1 - 4
hw/i386/kvm/pci-assign.c

@@ -20,11 +20,8 @@
  *  Copyright (C) 2008, Red Hat, Amit Shah (amit.shah@redhat.com)
  *  Copyright (C) 2008, Red Hat, Amit Shah (amit.shah@redhat.com)
  *  Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com)
  *  Copyright (C) 2008, IBM, Muli Ben-Yehuda (muli@il.ibm.com)
  */
  */
-#include <stdio.h>
-#include <unistd.h>
+#include "qemu/osdep.h"
 #include <sys/mman.h>
 #include <sys/mman.h>
-#include <sys/types.h>
-#include <sys/stat.h>
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"

+ 1 - 0
hw/i386/kvmvapic.c

@@ -8,6 +8,7 @@
  * (at your option) any later version. See the COPYING file in the
  * (at your option) any later version. See the COPYING file in the
  * top-level directory.
  * top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/cpus.h"
 #include "sysemu/cpus.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"

+ 1 - 0
hw/i386/multiboot.c

@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/nvram/fw_cfg.h"
 #include "hw/nvram/fw_cfg.h"
 #include "multiboot.h"
 #include "multiboot.h"

+ 1 - 0
hw/i386/pc.c

@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/char/serial.h"
 #include "hw/char/serial.h"

+ 1 - 0
hw/i386/pc_piix.c

@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include <glib.h>
 #include <glib.h>
 
 
 #include "hw/hw.h"
 #include "hw/hw.h"

+ 1 - 0
hw/i386/pc_q35.c

@@ -27,6 +27,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/loader.h"
 #include "hw/loader.h"
 #include "sysemu/arch_init.h"
 #include "sysemu/arch_init.h"

+ 1 - 0
hw/i386/pc_sysfw.c

@@ -23,6 +23,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/block-backend.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"
 #include "hw/sysbus.h"
 #include "hw/sysbus.h"

+ 1 - 4
hw/i386/pci-assign-load-rom.c

@@ -1,10 +1,7 @@
 /*
 /*
  * This is splited from hw/i386/kvm/pci-assign.c
  * This is splited from hw/i386/kvm/pci-assign.c
  */
  */
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "qemu/error-report.h"
 #include "qemu/error-report.h"

+ 1 - 0
hw/i386/xen/xen_apic.c

@@ -9,6 +9,7 @@
  * This work is licensed under the terms of the GNU GPL version 2 or
  * This work is licensed under the terms of the GNU GPL version 2 or
  * later. See the COPYING file in the top-level directory.
  * later. See the COPYING file in the top-level directory.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msi.h"
 #include "hw/xen/xen.h"
 #include "hw/xen/xen.h"

+ 1 - 0
hw/i386/xen/xen_platform.c

@@ -23,6 +23,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/ide.h"
 #include "hw/ide.h"

+ 1 - 0
hw/i386/xen/xen_pvdevice.c

@@ -29,6 +29,7 @@
  * SUCH DAMAGE.
  * SUCH DAMAGE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 #include "trace.h"
 #include "trace.h"

+ 1 - 0
hw/intc/apic.c

@@ -16,6 +16,7 @@
  * You should have received a copy of the GNU Lesser General Public
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>
  * License along with this library; if not, see <http://www.gnu.org/licenses/>
  */
  */
+#include "qemu/osdep.h"
 #include "qemu/thread.h"
 #include "qemu/thread.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/i386/apic.h"
 #include "hw/i386/apic.h"

+ 1 - 0
hw/intc/apic_common.c

@@ -17,6 +17,7 @@
  * You should have received a copy of the GNU Lesser General Public
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>
  * License along with this library; if not, see <http://www.gnu.org/licenses/>
  */
  */
+#include "qemu/osdep.h"
 #include "hw/i386/apic.h"
 #include "hw/i386/apic.h"
 #include "hw/i386/apic_internal.h"
 #include "hw/i386/apic_internal.h"
 #include "trace.h"
 #include "trace.h"

+ 1 - 0
hw/intc/ioapic.c

@@ -20,6 +20,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "monitor/monitor.h"
 #include "monitor/monitor.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"

+ 1 - 0
hw/intc/ioapic_common.c

@@ -19,6 +19,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "monitor/monitor.h"
 #include "monitor/monitor.h"
 #include "hw/i386/ioapic.h"
 #include "hw/i386/ioapic.h"
 #include "hw/i386/ioapic_internal.h"
 #include "hw/i386/ioapic_internal.h"

+ 1 - 0
hw/isa/lpc_ich9.c

@@ -27,6 +27,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "qapi/visitor.h"
 #include "qapi/visitor.h"

+ 1 - 0
hw/isa/piix4.c

@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"

+ 1 - 0
hw/misc/debugexit.c

@@ -7,6 +7,7 @@
  * (at your option) any later version.
  * (at your option) any later version.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"
 
 

+ 1 - 1
hw/misc/pc-testdev.c

@@ -35,7 +35,7 @@
  * git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
  * git://git.kernel.org/pub/scm/virt/kvm/kvm-unit-tests.git
 */
 */
 
 
-#include "config-host.h"
+#include "qemu/osdep.h"
 #if defined(CONFIG_POSIX)
 #if defined(CONFIG_POSIX)
 #include <sys/mman.h>
 #include <sys/mman.h>
 #endif
 #endif

+ 1 - 0
hw/misc/sga.c

@@ -24,6 +24,7 @@
  * sgabios code originally available at code.google.com/p/sgabios
  * sgabios code originally available at code.google.com/p/sgabios
  *
  *
  */
  */
+#include "qemu/osdep.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/loader.h"
 #include "hw/loader.h"

+ 1 - 0
hw/pci-host/pam.c

@@ -27,6 +27,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "qom/object.h"
 #include "qom/object.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"
 #include "hw/pci-host/pam.h"
 #include "hw/pci-host/pam.h"

+ 1 - 0
hw/pci-host/piix.c

@@ -22,6 +22,7 @@
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/pci/pci.h"
 #include "hw/pci/pci.h"

+ 1 - 0
hw/pci-host/q35.c

@@ -27,6 +27,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/pci-host/q35.h"
 #include "hw/pci-host/q35.h"
 #include "qapi/visitor.h"
 #include "qapi/visitor.h"

+ 1 - 0
hw/timer/hpet.c

@@ -24,6 +24,7 @@
  * This driver attempts to emulate an HPET device in software.
  * This driver attempts to emulate an HPET device in software.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "ui/console.h"
 #include "ui/console.h"

+ 1 - 0
hw/timer/i8254.c

@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"

+ 1 - 0
hw/timer/i8254_common.c

@@ -22,6 +22,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"
 #include "hw/isa/isa.h"
 #include "hw/isa/isa.h"

+ 1 - 0
hw/timer/mc146818rtc.c

@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "qemu/timer.h"
 #include "qemu/timer.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"

+ 1 - 0
target-i386/arch_dump.c

@@ -11,6 +11,7 @@
  *
  *
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/cpu-all.h"
 #include "exec/cpu-all.h"
 #include "sysemu/dump.h"
 #include "sysemu/dump.h"

+ 1 - 0
target-i386/arch_memory_mapping.c

@@ -11,6 +11,7 @@
  *
  *
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/cpu-all.h"
 #include "exec/cpu-all.h"
 #include "sysemu/memory_mapping.h"
 #include "sysemu/memory_mapping.h"

+ 1 - 0
target-i386/bpt_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"
 
 

+ 1 - 0
target-i386/cc_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"
 
 

+ 1 - 0
target-i386/excp_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/sysemu.h"

+ 1 - 0
target-i386/fpu_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include <math.h>
 #include <math.h>
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"

+ 1 - 1
target-i386/gdbstub.c

@@ -17,7 +17,7 @@
  * You should have received a copy of the GNU Lesser General Public
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
-#include "config.h"
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "exec/gdbstub.h"
 #include "exec/gdbstub.h"
 
 

+ 1 - 0
target-i386/helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "sysemu/kvm.h"
 #include "sysemu/kvm.h"
 #include "kvm_i386.h"
 #include "kvm_i386.h"

+ 1 - 0
target-i386/hyperv.c

@@ -11,6 +11,7 @@
  *
  *
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "hyperv.h"
 #include "hyperv.h"
 #include "standard-headers/asm-x86/hyperv.h"
 #include "standard-headers/asm-x86/hyperv.h"
 
 

+ 1 - 0
target-i386/int_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "qemu/host-utils.h"
 #include "qemu/host-utils.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"

+ 1 - 0
target-i386/kvm-stub.c

@@ -9,6 +9,7 @@
  * See the COPYING file in the top-level directory.
  * See the COPYING file in the top-level directory.
  *
  *
  */
  */
+#include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "qemu-common.h"
 #include "kvm_i386.h"
 #include "kvm_i386.h"
 
 

+ 1 - 1
target-i386/kvm.c

@@ -12,7 +12,7 @@
  *
  *
  */
  */
 
 
-#include <sys/types.h>
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 #include <sys/mman.h>
 #include <sys/utsname.h>
 #include <sys/utsname.h>

+ 1 - 0
target-i386/machine.c

@@ -1,3 +1,4 @@
+#include "qemu/osdep.h"
 #include "hw/hw.h"
 #include "hw/hw.h"
 #include "hw/boards.h"
 #include "hw/boards.h"
 #include "hw/i386/pc.h"
 #include "hw/i386/pc.h"

+ 1 - 0
target-i386/mem_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"
 #include "exec/cpu_ldst.h"
 #include "exec/cpu_ldst.h"

+ 1 - 0
target-i386/misc_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"
 #include "exec/cpu_ldst.h"
 #include "exec/cpu_ldst.h"

+ 1 - 0
target-i386/monitor.c

@@ -21,6 +21,7 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  * THE SOFTWARE.
  */
  */
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "monitor/monitor.h"
 #include "monitor/monitor.h"
 #include "monitor/hmp-target.h"
 #include "monitor/hmp-target.h"

+ 1 - 0
target-i386/seg_helper.c

@@ -18,6 +18,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "qemu/log.h"
 #include "qemu/log.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"

+ 1 - 0
target-i386/smm_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"
 
 

+ 1 - 0
target-i386/svm_helper.c

@@ -17,6 +17,7 @@
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
 
 
+#include "qemu/osdep.h"
 #include "cpu.h"
 #include "cpu.h"
 #include "exec/cpu-all.h"
 #include "exec/cpu-all.h"
 #include "exec/helper-proto.h"
 #include "exec/helper-proto.h"

+ 1 - 5
target-i386/translate.c

@@ -16,11 +16,7 @@
  * You should have received a copy of the GNU Lesser General Public
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
  */
  */
-#include <stdarg.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <inttypes.h>
+#include "qemu/osdep.h"
 
 
 #include "qemu/host-utils.h"
 #include "qemu/host-utils.h"
 #include "cpu.h"
 #include "cpu.h"