mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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>
This commit is contained in:
parent
ccc76731ae
commit
456b247eea
2 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
#define HW_XTENSA_BOOTPARAM_H
|
||||
|
||||
#include "exec/cpu-common.h"
|
||||
#include "exec/tswap.h"
|
||||
|
||||
#define BP_TAG_COMMAND_LINE 0x1001 /* command line (0-terminated string)*/
|
||||
#define BP_TAG_INITRD 0x1002 /* ramdisk addr and size (bp_meminfo) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue