On 12/11/24 17:03, Philippe Mathieu-Daudé wrote:
r2d.c 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/sh4/r2d.c:357:35: error: call to undeclared function 'tswap32'; ISO C99 
and later do not support implicit function declarations 
[-Wimplicit-function-declaration]
     357 |         boot_params.loader_type = tswap32(1);
         |                                   ^

Signed-off-by: Philippe Mathieu-Daudé<phi...@linaro.org>
---
  hw/sh4/r2d.c | 1 +
  1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to