Răsfoiți Sursa

hw/cxl: Clean up includes

This commit was created with scripts/clean-includes.

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: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20230202133830.2152150-8-armbru@redhat.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Markus Armbruster 2 ani în urmă
părinte
comite
d90b1e4236
3 a modificat fișierele cu 0 adăugiri și 4 ștergeri
  1. 0 2
      include/hw/cxl/cxl_component.h
  2. 0 1
      include/hw/cxl/cxl_host.h
  3. 0 1
      include/hw/cxl/cxl_pci.h

+ 0 - 2
include/hw/cxl/cxl_component.h

@@ -15,9 +15,7 @@
 #define CXL2_COMPONENT_CM_REGION_SIZE 0x1000
 #define CXL2_COMPONENT_CM_REGION_SIZE 0x1000
 #define CXL2_COMPONENT_BLOCK_SIZE 0x10000
 #define CXL2_COMPONENT_BLOCK_SIZE 0x10000
 
 
-#include "qemu/compiler.h"
 #include "qemu/range.h"
 #include "qemu/range.h"
-#include "qemu/typedefs.h"
 #include "hw/cxl/cxl_cdat.h"
 #include "hw/cxl/cxl_cdat.h"
 #include "hw/register.h"
 #include "hw/register.h"
 #include "qapi/error.h"
 #include "qapi/error.h"

+ 0 - 1
include/hw/cxl/cxl_host.h

@@ -7,7 +7,6 @@
  * COPYING file in the top-level directory.
  * COPYING file in the top-level directory.
  */
  */
 
 
-#include "qemu/osdep.h"
 #include "hw/cxl/cxl.h"
 #include "hw/cxl/cxl.h"
 #include "hw/boards.h"
 #include "hw/boards.h"
 
 

+ 0 - 1
include/hw/cxl/cxl_pci.h

@@ -10,7 +10,6 @@
 #ifndef CXL_PCI_H
 #ifndef CXL_PCI_H
 #define CXL_PCI_H
 #define CXL_PCI_H
 
 
-#include "qemu/compiler.h"
 
 
 #define CXL_VENDOR_ID 0x1e98
 #define CXL_VENDOR_ID 0x1e98