]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/virtio: Add missing "hw/core/cpu.h" include
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 13 Dec 2022 11:17:02 +0000 (12:17 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 21 Dec 2022 12:32:24 +0000 (07:32 -0500)
commit302f1fe110e003c76e549db7cf8dbc1801cd1848
treec1033a0b1fe91f6f3206d7b421491e5690bc5899
parent617564bf92cfc809fd50026c087c617d0e721f4c
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é <philmd@linaro.org>
Message-Id: <20221213111707.34921-2-philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio.c