target/arm/kvm64.c: Remove unused include
PATCH 1/1 target/arm/kvm64.c: Remove unused include
The include of hw/arm/virt.h in kvm64.c is unnecessary and also a layering violation since the generic KVM code shouldn't need to know anything about board-specifics. The include line is an accidental leftover from commit 15613357ba53a4763, where we cleaned up the code to not depend on virt board internals but forgot to also remove the now-redundant include line.
--- target/arm/kvm64.c | 1 - 1 file changed, 1 deletion(-)
target/arm/kvm64.c +0 -1
@@ -30,7 +30,6 @@#include "internals.h" #include "hw/acpi/acpi.h" #include "hw/acpi/ghes.h" -#include "hw/arm/virt.h" static bool have_guest_debug;
Signature · 1 line
2.34.1
Quoted 7 lines · Peter Maydell
The include of
hw/arm/virt.hinkvm64.cis unnecessary and also a layering violation since the generic KVM code shouldn't need to know anything about board-specifics. The include line is an accidental leftover from commit15613357ba53a4763, where we cleaned up the code to not depend on virt board internals but forgot to also remove the now-redundant include line.
Quoted 5 lines
Signed-off-by Peter Maydell <[email protected]>--- target/arm/kvm64.c | 1 - 1 file changed, 1 deletion(-)
Quoted 12 lines
target/arm/kvm64.c +0
-1@@ -30,7 +30,6 @@#include "internals.h" #include "hw/acpi/acpi.h" #include "hw/acpi/ghes.h" -#include "hw/arm/virt.h" static bool have_guest_debug;
Quoted 11 lines · Peter Maydell
The include of
hw/arm/virt.hinkvm64.cis unnecessary and also a layering violation since the generic KVM code shouldn't need to know anything about board-specifics. The include line is an accidental leftover from commit15613357ba53a4763, where we cleaned up the code to not depend on virt board internals but forgot to also remove the now-redundant include line.Signed-off-by Peter Maydell <[email protected]>--- target/arm/kvm64.c | 1 - 1 file changed, 1 deletion(-)