hw/xtensa: Include missing 'exec/tswap.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 5 Dec 2024 22:41:58 +0000 (23:41 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Dec 2024 23:16:20 +0000 (00:16 +0100)
commit456b247eeab067095b680fa4b0fec48137969593
treedbbe65a4c69f8af5b02104c27da114adee5f75c7
parentccc76731aee7d3efb16a679fa5bf3cc3f57e9f2d
hw/xtensa: Include missing 'exec/tswap.h' header

Some files indirectly get "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:

  hw/xtensa/bootparam.h:40:16: error: call to undeclared function 'tswap16'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     40 |         .tag = tswap16(tag),
        |                ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241211230357.97036-9-philmd@linaro.org>
hw/xtensa/bootparam.h
hw/xtensa/xtfpga.c