diff mbox series

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

Message ID 20230516115455.599584-2-thuth@redhat.com
State New
Headers show
Series None | expand

Commit Message

Thomas Huth May 16, 2023, 11:54 a.m. UTC
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 mbox series

Patch

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"