cxl: Clean up includes

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
This commit is contained in:
Peter Maydell 2025-11-04 16:09:41 +00:00
parent 032333eba7
commit 2a2527c815
2 changed files with 2 additions and 2 deletions

View file

@ -7,9 +7,9 @@
* COPYING file in the top-level directory. * COPYING file in the top-level directory.
*/ */
#include "qemu/osdep.h"
#include <math.h> #include <math.h>
#include "qemu/osdep.h"
#include "hw/pci/msi.h" #include "hw/pci/msi.h"
#include "hw/pci/msix.h" #include "hw/pci/msix.h"
#include "hw/cxl/cxl.h" #include "hw/cxl/cxl.h"

View file

@ -8,9 +8,9 @@
* *
* SPDX-License-Identifier: GPL-v2-only * SPDX-License-Identifier: GPL-v2-only
*/ */
#include "qemu/osdep.h"
#include <math.h> #include <math.h>
#include "qemu/osdep.h"
#include "qemu/units.h" #include "qemu/units.h"
#include "qemu/error-report.h" #include "qemu/error-report.h"
#include "qapi/qapi-commands-cxl.h" #include "qapi/qapi-commands-cxl.h"