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

Philippe Mathieu-Daudé posted 19 patches 7 months, 2 weeks ago
[RFC PATCH-for-10.1 15/19] accel: Include missing 'qemu/accel.h' header in accel-internal.h
Posted by Philippe Mathieu-Daudé 7 months, 2 weeks ago
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 */
-- 
2.47.1


Re: [RFC PATCH-for-10.1 15/19] accel: Include missing 'qemu/accel.h' header in accel-internal.h
Posted by Pierrick Bouvier 7 months, 2 weeks ago
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>