[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/11] hw/core: Cleanup unused included headers in cpu-common.c
|
From: |
Zhao Liu |
|
Subject: |
[PATCH 02/11] hw/core: Cleanup unused included headers in cpu-common.c |
|
Date: |
Mon, 15 Jan 2024 17:48:43 +0800 |
From: Zhao Liu <zhao1.liu@intel.com>
Remove unused headers in cpu-common.c:
* qemu/notify.h
* qemu/log.h
* qemu/main-loop.h
* exec/cpu-common.h
* qemu/error-report.h
* qemu/qemu-print.h
Though hw/core/cpu.h has been included by sysemu/hw_accel.h, to keep
the dependency clear, still directly include hw/core/cpu.h in this file.
Tested by "./configure" and then "make".
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
---
hw/core/cpu-common.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/hw/core/cpu-common.c b/hw/core/cpu-common.c
index 3ccfe882e2c3..bb21dfc03029 100644
--- a/hw/core/cpu-common.c
+++ b/hw/core/cpu-common.c
@@ -19,16 +19,11 @@
*/
#include "qemu/osdep.h"
+
#include "qapi/error.h"
#include "hw/core/cpu.h"
#include "sysemu/hw_accel.h"
-#include "qemu/notify.h"
-#include "qemu/log.h"
-#include "qemu/main-loop.h"
#include "exec/log.h"
-#include "exec/cpu-common.h"
-#include "qemu/error-report.h"
-#include "qemu/qemu-print.h"
#include "sysemu/tcg.h"
#include "hw/boards.h"
#include "hw/qdev-properties.h"
--
2.34.1
[PATCH 04/11] hw/core: Reorder included headers in cpu-sysemu.c, Zhao Liu, 2024/01/15
[PATCH 03/11] hw/core: Reorder included headers in cpu-common.c, Zhao Liu, 2024/01/15
[PATCH 06/11] hw/core: Cleanup unused included header in machine.c, Zhao Liu, 2024/01/15
[PATCH 08/11] hw/core: Cleanup unnecessary included header in null-machine.c, Zhao Liu, 2024/01/15
[PATCH 09/11] hw/core: Reorder included headers in null-machine.c, Zhao Liu, 2024/01/15
[PATCH 05/11] hw/core: Cleanup unused included headers in machine-qmp-cmds.c, Zhao Liu, 2024/01/15