diff mbox series

[RFC,PATCH-for-10.1,15/19] accel: Include missing 'qemu/accel.h' header in accel-internal.h

Message ID 20250403234914.9154-16-philmd@linaro.org
State New
Headers show
Series qemu: Introduce TargetInfo API (for single binary) | expand

Commit Message

Philippe Mathieu-Daudé April 3, 2025, 11:49 p.m. UTC
In file included from ../../accel/accel-target.c:29:
../../accel/accel-internal.h:13:32: error: unknown type name 'AccelClass'
   13 | void accel_init_ops_interfaces(AccelClass *ac);
      |                                ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 accel/accel-internal.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Pierrick Bouvier April 4, 2025, 4:56 p.m. UTC | #1
On 4/3/25 16:49, Philippe Mathieu-Daudé wrote:
> In file included from ../../accel/accel-target.c:29:
> ../../accel/accel-internal.h:13:32: error: unknown type name 'AccelClass'
>     13 | void accel_init_ops_interfaces(AccelClass *ac);
>        |                                ^
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
>   accel/accel-internal.h | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/accel/accel-internal.h b/accel/accel-internal.h
> index 03426aa21ee..d3a4422cbf7 100644
> --- a/accel/accel-internal.h
> +++ b/accel/accel-internal.h
> @@ -10,6 +10,8 @@
>   #ifndef ACCEL_INTERNAL_H
>   #define ACCEL_INTERNAL_H
>   
> +#include "qemu/accel.h"
> +
>   void accel_init_ops_interfaces(AccelClass *ac);
>   
>   #endif /* ACCEL_SYSTEM_H */

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
diff mbox series

Patch

diff --git a/accel/accel-internal.h b/accel/accel-internal.h
index 03426aa21ee..d3a4422cbf7 100644
--- a/accel/accel-internal.h
+++ b/accel/accel-internal.h
@@ -10,6 +10,8 @@ 
 #ifndef ACCEL_INTERNAL_H
 #define ACCEL_INTERNAL_H
 
+#include "qemu/accel.h"
+
 void accel_init_ops_interfaces(AccelClass *ac);
 
 #endif /* ACCEL_SYSTEM_H */