From: Philippe Mathieu-Daudé Date: Wed, 10 Jan 2024 14:49:40 +0000 (+0100) Subject: accel/tcg: Include missing headers in 'tb-jmp-cache.h' X-Git-Tag: v9.1.0-rc0~133^2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=893b4bde885c1f02edbe9d9533919abb0ac50490;p=thirdparty%2Fqemu.git accel/tcg: Include missing headers in 'tb-jmp-cache.h' Due to missing headers, when including "tb-jmp-cache.h" we might get: accel/tcg/tb-jmp-cache.h:21:21: error: field ‘rcu’ has incomplete type 21 | struct rcu_head rcu; | ^~~ accel/tcg/tb-jmp-cache.h:24:9: error: unknown type name ‘vaddr’ 24 | vaddr pc; | ^~~~~ Add the missing "qemu/rcu.h" and "exec/cpu-common.h" headers. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson Message-Id: <20240111162442.43755-1-philmd@linaro.org> --- diff --git a/accel/tcg/tb-jmp-cache.h b/accel/tcg/tb-jmp-cache.h index 4ab8553afcc..184bb3e3e2e 100644 --- a/accel/tcg/tb-jmp-cache.h +++ b/accel/tcg/tb-jmp-cache.h @@ -9,6 +9,9 @@ #ifndef ACCEL_TCG_TB_JMP_CACHE_H #define ACCEL_TCG_TB_JMP_CACHE_H +#include "qemu/rcu.h" +#include "exec/cpu-common.h" + #define TB_JMP_CACHE_BITS 12 #define TB_JMP_CACHE_SIZE (1 << TB_JMP_CACHE_BITS)