From: Philippe Mathieu-Daudé Date: Wed, 5 Apr 2023 11:39:29 +0000 (+0200) Subject: hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=94522562f68043c0420795c9b4ec8f1d6b40e2fc;p=qemu.git hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header "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()) { ^ Reviewed-by: Leif Lindholm Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20230405160454.97436-6-philmd@linaro.org> --- diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 66500a5b08..82a28b2e0b 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -23,6 +23,7 @@ #include "qemu/error-report.h" #include "qemu/units.h" #include "sysemu/device_tree.h" +#include "sysemu/kvm.h" #include "sysemu/numa.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h"