]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
cxl: Clean up includes
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 4 Nov 2025 16:09:41 +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 cxl hw/cxl hw/mem

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>
Acked-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Message-id: 20251104160943.751997-8-peter.maydell@linaro.org

hw/cxl/cxl-mailbox-utils.c
hw/mem/cxl_type3.c

index 68c7cc98912d04960fe909420dbb24c4e2e2d9b0..6cfdd98168f92320a393e8cb0614126f526d48de 100644 (file)
@@ -7,9 +7,9 @@
  * COPYING file in the top-level directory.
  */
 
+#include "qemu/osdep.h"
 #include <math.h>
 
-#include "qemu/osdep.h"
 #include "hw/pci/msi.h"
 #include "hw/pci/msix.h"
 #include "hw/cxl/cxl.h"
index be609ff9d0310faa93b00affaeab02ea3c6c63ed..4f3688a71b67a02c8834406b2f70073bc9fc51ec 100644 (file)
@@ -8,9 +8,9 @@
  *
  * SPDX-License-Identifier: GPL-v2-only
  */
+#include "qemu/osdep.h"
 #include <math.h>
 
-#include "qemu/osdep.h"
 #include "qemu/units.h"
 #include "qemu/error-report.h"
 #include "qapi/qapi-commands-cxl.h"