[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tests/qtest/fuzz: Fix build failure
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH] tests/qtest/fuzz: Fix build failure |
Date: |
Tue, 25 May 2021 09:53:31 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
ping? (patch reviewed).
On 5/13/21 6:20 PM, Philippe Mathieu-Daudé wrote:
> On Fedora 32, using clang (version 10.0.1-3.fc32) we get:
>
> tests/qtest/fuzz/fuzz.c:237:5: error: implicit declaration of function
> 'qemu_init' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
> qemu_init(result.we_wordc, result.we_wordv, NULL);
> ^
>
> qemu_init() is declared in "sysemu/sysemu.h", include this
> header to fix.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
> ---
> tests/qtest/fuzz/fuzz.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/qtest/fuzz/fuzz.c b/tests/qtest/fuzz/fuzz.c
> index 04b70e114bf..5f77c849837 100644
> --- a/tests/qtest/fuzz/fuzz.c
> +++ b/tests/qtest/fuzz/fuzz.c
> @@ -16,6 +16,7 @@
> #include <wordexp.h>
>
> #include "qemu/datadir.h"
> +#include "sysemu/sysemu.h"
> #include "sysemu/qtest.h"
> #include "sysemu/runstate.h"
> #include "qemu/main-loop.h"
>