From: Philippe Mathieu-Daudé Date: Thu, 5 Dec 2024 22:37:35 +0000 (+0100) Subject: accel/tcg: Include missing 'exec/tswap.h' header in translator.c X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ea77480146c4c84a604273de25744c78ef8968b9;p=qemu.git accel/tcg: Include missing 'exec/tswap.h' header in translator.c translator.c indirectly gets "exec/tswap.h" declarations via "exec/cpu-all.h". Include it directly to be able to remove the former from the latter, otherwise we get: accel/tcg/translator.c:433:15: error: call to undeclared function 'tswap16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 433 | tgt = tswap16(raw); | ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20241211230357.97036-4-philmd@linaro.org> --- diff --git a/accel/tcg/translator.c b/accel/tcg/translator.c index cbad00a517..ff5dabc901 100644 --- a/accel/tcg/translator.c +++ b/accel/tcg/translator.c @@ -15,6 +15,7 @@ #include "exec/cpu_ldst.h" #include "exec/plugin-gen.h" #include "exec/cpu_ldst.h" +#include "exec/tswap.h" #include "tcg/tcg-op-common.h" #include "internal-target.h" #include "disas/disas.h"