]> git.proxmox.com Git - mirror_qemu.git/commit
hw/arm/xilinx_zynq: Include missing 'exec/tswap.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 18 Jan 2024 20:06:23 +0000 (21:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Jan 2024 11:30:48 +0000 (11:30 +0000)
commitc143edaaee774be87b6ea3102934ff66d16f287e
tree445b940225346a14de0a2de9804075b3707067c1
parentfd8d2bba5d56a850e81d8335e1cc18e3908c2a45
hw/arm/xilinx_zynq: Include missing 'exec/tswap.h' header

hw/arm/xilinx_zynq.c calls tswap32() which is declared
in "exec/tswap.h". Include it in order to avoid when
refactoring unrelated headers:

  hw/arm/xilinx_zynq.c:103:31: error: call to undeclared function 'tswap32';
  ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
          board_setup_blob[n] = tswap32(board_setup_blob[n]);
                                ^

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240118200643.29037-3-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/xilinx_zynq.c