]> git.proxmox.com Git - mirror_qemu.git/commitdiff
acpi: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 25 Jan 2024 16:34:03 +0000 (16:34 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 30 Jan 2024 18:20:20 +0000 (21:20 +0300)
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes --git acpi include/hw/*/*acpi.h hw/*/*acpi.c

All .c should include qemu/osdep.h first.  The script performs three
related cleanups:

* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c  already includes
  it.  Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
  Drop these, too.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/nvram/fw_cfg-acpi.c
hw/virtio/virtio-acpi.c
include/hw/nvram/fw_cfg_acpi.h
include/hw/virtio/virtio-acpi.h

index 4e48baeaa0154b2ba8e0f621d4f23aa4d1fa6d1d..58cdcd3121cd1d343501714436b4dd57f4e9f0be 100644 (file)
@@ -4,6 +4,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "hw/nvram/fw_cfg_acpi.h"
 #include "hw/acpi/aml-build.h"
 
index e18cb38bdbe4bb201dd90b54660e854872ace3f2..230a6695001fc0ad4db6b7d585964eb3a9a33bd4 100644 (file)
@@ -4,6 +4,7 @@
  *
  */
 
+#include "qemu/osdep.h"
 #include "hw/virtio/virtio-acpi.h"
 #include "hw/acpi/aml-build.h"
 
index b6553d86fcb0884f72dc7ee65e3f6cb9da3fba93..b39eb0490ffa4a249f18b16eb4f2404192b1b26c 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef FW_CFG_ACPI_H
 #define FW_CFG_ACPI_H
 
-#include "qemu/osdep.h"
 #include "exec/hwaddr.h"
 
 void fw_cfg_acpi_dsdt_add(Aml *scope, const MemMapEntry *fw_cfg_memmap);
index 844e102569ef5e6dd2ca88301d64e555c55a9698..cace2a315f4646aadb6a7e94284c7de79cee671c 100644 (file)
@@ -6,7 +6,6 @@
 #ifndef VIRTIO_ACPI_H
 #define VIRTIO_ACPI_H
 
-#include "qemu/osdep.h"
 #include "exec/hwaddr.h"
 
 void virtio_acpi_dsdt_add(Aml *scope, const hwaddr virtio_mmio_base,