[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header
From: |
Leif Lindholm |
Subject: |
Re: [PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header |
Date: |
Wed, 5 Apr 2023 19:23:14 +0100 |
On Wed, Apr 05, 2023 at 18:04:49 +0200, Philippe Mathieu-Daudé wrote:
> "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"
Can I do my traditional nitpick and ask this to be added above
sysemu/numa.h in order to maintain alphabetical ordering within the
sysemu block?
With that:
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
> #include "exec/hwaddr.h"
> #include "kvm_arm.h"
> #include "hw/arm/boot.h"
> --
> 2.38.1
>
- [PATCH 02/10] accel/kvm: Declare kvm_direct_msi_allowed in stubs, (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é, 2023/04/05
- [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