All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests/qtest/fuzz: Fix build failure
@ 2021-05-13 16:20 Philippe Mathieu-Daudé
  2021-05-13 20:10 ` Alexander Bulekov
  2021-05-25  7:53 ` Philippe Mathieu-Daudé
  0 siblings, 2 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-05-13 16:20 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Thomas Huth, qemu-trivial, Alexander Bulekov,
	Bandan Das, Stefan Hajnoczi, Paolo Bonzini,
	Philippe Mathieu-Daudé

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"
-- 
2.26.3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] tests/qtest/fuzz: Fix build failure
  2021-05-13 16:20 [PATCH] tests/qtest/fuzz: Fix build failure Philippe Mathieu-Daudé
@ 2021-05-13 20:10 ` Alexander Bulekov
  2021-05-25  7:53 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Bulekov @ 2021-05-13 20:10 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Laurent Vivier, Thomas Huth, qemu-trivial, qemu-devel,
	Bandan Das, Stefan Hajnoczi, Paolo Bonzini



On 210513 1820, 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>

Reviewed-by: Alexander Bulekov <alxndr@bu.edu>

Thank you


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] tests/qtest/fuzz: Fix build failure
  2021-05-13 16:20 [PATCH] tests/qtest/fuzz: Fix build failure Philippe Mathieu-Daudé
  2021-05-13 20:10 ` Alexander Bulekov
@ 2021-05-25  7:53 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-05-25  7:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Thomas Huth, qemu-trivial, Alexander Bulekov,
	Bandan Das, Stefan Hajnoczi, Paolo Bonzini

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"
> 



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-25  7:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 16:20 [PATCH] tests/qtest/fuzz: Fix build failure Philippe Mathieu-Daudé
2021-05-13 20:10 ` Alexander Bulekov
2021-05-25  7:53 ` Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.