]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
vfio: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 4 Nov 2025 16:09:42 +0000 (16:09 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Nov 2025 13:18:04 +0000 (13:18 +0000)
This commit was created with scripts/clean-includes:
 ./scripts/clean-includes --git vfio hw/vfio hw/vfio-user

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: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20251104160943.751997-9-peter.maydell@linaro.org

hw/vfio-user/container.c
hw/vfio-user/container.h
hw/vfio-user/device.h
hw/vfio-user/pci.c
hw/vfio/ap.c
hw/vfio/container.c
hw/vfio/cpr-legacy.c
hw/vfio/pci-quirks.h

index e45192fef6531872e484372d45dca82fac6cb88f..dab7a23224cb65d516fa5da22efc6ff73b699a8a 100644 (file)
@@ -6,9 +6,9 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 #include <linux/vfio.h>
-#include "qemu/osdep.h"
 
 #include "hw/vfio-user/container.h"
 #include "hw/vfio-user/device.h"
index a2b42e3169dfba173308cb69404fc3b0fa98e99a..c952e090631d12211338058e879ecf87f8086203 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef HW_VFIO_USER_CONTAINER_H
 #define HW_VFIO_USER_CONTAINER_H
 
-#include "qemu/osdep.h"
 
 #include "hw/vfio/vfio-container.h"
 #include "hw/vfio-user/proxy.h"
index d183a3950e26ea1defac870509265cdfe57a4026..49c05848f1a3cefb7cc79be4f9dae73cec80e6e3 100644 (file)
@@ -9,7 +9,6 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
-#include "qemu/osdep.h"
 #include "linux/vfio.h"
 
 #include "hw/vfio-user/proxy.h"
index b53ed3b456f9c9bfe5fbef7b43a9870e871966f8..353d07e7819b2003cc60c2dfc8a1327a95270323 100644 (file)
@@ -6,8 +6,8 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
-#include <sys/ioctl.h>
 #include "qemu/osdep.h"
+#include <sys/ioctl.h>
 #include "qapi-visit-sockets.h"
 #include "qemu/error-report.h"
 
index 7719f245797ef45b6392270741c7dd0a36527fd2..3368ac89150c6f3cc4a7fb90b0983b8bc223c477 100644 (file)
@@ -10,7 +10,6 @@
  * directory.
  */
 
-#include <stdbool.h>
 #include "qemu/osdep.h"
 #include CONFIG_DEVICES /* CONFIG_IOMMUFD */
 #include <linux/vfio.h>
index 9ddec300e35c7daca424303b636da22a4df22469..013a691bc5a8a698f6cab71156f4a3595bcce797 100644 (file)
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 #include <linux/vfio.h>
 
-#include "qemu/osdep.h"
 #include "system/tcg.h"
 #include "system/ram_addr.h"
 #include "qapi/error.h"
index 86c943158e28adfeb1f2a10ede423f038e84712b..7c03ddb961063d061813a2d8d6c3fbb00e935a86 100644 (file)
@@ -4,9 +4,9 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 #include <linux/vfio.h>
-#include "qemu/osdep.h"
 #include "hw/vfio/vfio-container-legacy.h"
 #include "hw/vfio/vfio-device.h"
 #include "hw/vfio/vfio-listener.h"
index d1532e379b14c56950c562b84af7edb2b4748321..a6282e063a14100c2ccfb7db6ff3d5cb466c4a33 100644 (file)
@@ -12,7 +12,6 @@
 #ifndef HW_VFIO_VFIO_PCI_QUIRKS_H
 #define HW_VFIO_VFIO_PCI_QUIRKS_H
 
-#include "qemu/osdep.h"
 #include "exec/memop.h"
 
 /*