[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header |
Date: |
Wed, 5 Apr 2023 18:04:49 +0200 |
"sysemu/kvm.h" is indirectly pulled in. Explicit its
inclusion to avoid when refactoring include/:
hw/arm/sbsa-ref.c:693:9: error: implicit declaration of function
'kvm_enabled' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
if (kvm_enabled()) {
^
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
hw/arm/sbsa-ref.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c
index 0b93558dde..7df4d7b712 100644
--- a/hw/arm/sbsa-ref.c
+++ b/hw/arm/sbsa-ref.c
@@ -26,6 +26,7 @@
#include "sysemu/numa.h"
#include "sysemu/runstate.h"
#include "sysemu/sysemu.h"
+#include "sysemu/kvm.h"
#include "exec/hwaddr.h"
#include "kvm_arm.h"
#include "hw/arm/boot.h"
--
2.38.1
- Re: [PATCH 01/10] sysemu/kvm: Remove unused headers, (continued)
- [PATCH 02/10] accel/kvm: Declare kvm_direct_msi_allowed in stubs, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 03/10] hw/intc/arm_gic: Un-inline GIC*/ITS class_name() helpers, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 04/10] hw/intc/arm_gic: Rename 'first_cpu' argument, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header,
Philippe Mathieu-Daudé <=
- [PATCH 06/10] target/arm: Reduce QMP header pressure by not including 'kvm_arm.h', Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 07/10] target/arm: Restrict KVM-specific fields from ArchCPU, Philippe Mathieu-Daudé, 2023/04/05
- [PATCH 08/10] target/ppc: Restrict KVM-specific field from ArchCPU, Philippe Mathieu-Daudé, 2023/04/05
- [RFC PATCH 09/10] target/riscv: Restrict KVM-specific fields from ArchCPU, Philippe Mathieu-Daudé, 2023/04/05