[PULL v2 02/21] sysemu/kvm: Remove unused headers

Thomas Huth posted 21 patches 2 years, 8 months ago
Only 1 patches received!
[PULL v2 02/21] sysemu/kvm: Remove unused headers
Posted by Thomas Huth 2 years, 8 months ago
From: Philippe Mathieu-Daudé <philmd@linaro.org>

All types used are forward-declared in "qemu/typedefs.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230405160454.97436-2-philmd@linaro.org>
[thuth: Add hw/core/cpu.h to migration/dirtyrate.c to fix compile failure]
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 include/sysemu/kvm.h  | 3 ---
 migration/dirtyrate.c | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h
index c8281c07a7..88f5ccfbce 100644
--- a/include/sysemu/kvm.h
+++ b/include/sysemu/kvm.h
@@ -14,9 +14,6 @@
 #ifndef QEMU_KVM_H
 #define QEMU_KVM_H
 
-#include "qemu/queue.h"
-#include "hw/core/cpu.h"
-#include "exec/memattrs.h"
 #include "qemu/accel.h"
 #include "qom/object.h"
 
diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c
index c06f12c39d..0220db82ec 100644
--- a/migration/dirtyrate.c
+++ b/migration/dirtyrate.c
@@ -13,6 +13,7 @@
 #include "qemu/osdep.h"
 #include "qemu/error-report.h"
 #include <zlib.h>
+#include "hw/core/cpu.h"
 #include "qapi/error.h"
 #include "exec/ramblock.h"
 #include "exec/target_page.h"
-- 
2.31.1


  • [PULL v2 02/21] sysemu/kvm: Remove unused headers