diff mbox series

[10/11] hw/core: Cleanup unused included headers in numa.c

Message ID 20240115094852.3597165-11-zhao1.liu@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series hw/core: Cleanup and reorder headers | expand

Commit Message

Zhao Liu Jan. 15, 2024, 9:48 a.m. UTC
From: Zhao Liu <zhao1.liu@intel.com>

Remove unused header in numa.c:
* sysemu/hostmem.h
* exec/cpu-common.h
* exec/ramlist.h
* qemu/bitmap.h
* hw/core/cpu.h
* hw/mem/pc-dimm.h
* migration/vmstate.h

Though sysemu/numa.h has been included by sysemu/hostmem.h which is
included by hw/boards.h, to keep the dependency clear, still directly
include sysemu/numa.h in this file.

Tested by "./configure" and then "make".

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
 hw/core/numa.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/hw/core/numa.c b/hw/core/numa.c
index f08956ddb0ff..ab3f2858ac51 100644
--- a/hw/core/numa.c
+++ b/hw/core/numa.c
@@ -23,20 +23,14 @@ 
  */
 
 #include "qemu/osdep.h"
+
 #include "qemu/units.h"
-#include "sysemu/hostmem.h"
 #include "sysemu/numa.h"
-#include "exec/cpu-common.h"
-#include "exec/ramlist.h"
-#include "qemu/bitmap.h"
 #include "qemu/error-report.h"
 #include "qapi/error.h"
 #include "qapi/opts-visitor.h"
 #include "qapi/qapi-visit-machine.h"
 #include "sysemu/qtest.h"
-#include "hw/core/cpu.h"
-#include "hw/mem/pc-dimm.h"
-#include "migration/vmstate.h"
 #include "hw/boards.h"
 #include "hw/mem/memory-device.h"
 #include "qemu/option.h"