From: Philippe Mathieu-Daudé Date: Tue, 13 Dec 2022 11:17:02 +0000 (+0100) Subject: hw/virtio: Add missing "hw/core/cpu.h" include X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=302f1fe110e003c76e549db7cf8dbc1801cd1848;p=people%2Fpauldu%2Fqemu.git hw/virtio: Add missing "hw/core/cpu.h" include virtio.c uses target_words_bigendian() which is declared in "hw/core/cpu.h". Add the missing header to avoid when refactoring: hw/virtio/virtio.c:2451:9: error: implicit declaration of function 'target_words_bigendian' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (target_words_bigendian()) { ^ Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221213111707.34921-2-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c index 2118efbe72..15197002ef 100644 --- a/hw/virtio/virtio.c +++ b/hw/virtio/virtio.c @@ -25,6 +25,7 @@ #include "qemu/main-loop.h" #include "qemu/module.h" #include "qom/object_interfaces.h" +#include "hw/core/cpu.h" #include "hw/virtio/virtio.h" #include "migration/qemu-file-types.h" #include "qemu/atomic.h"