mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 22:36:05 +00:00
![]() Compiling with gcc 13 results in an error:
drivers/axi/axi-emul-uclass.c:16:5: warning: conflicting types for
‘axi_sandbox_get_emul’ due to enum/integer mismatch; have
‘int(struct udevice *, ulong, enum axi_size_t, struct udevice **)’
{aka ‘int(struct udevice *, long unsigned int, enum axi_size_t,
struct udevice **)’} [-Wenum-int-mismatch]
16 | int axi_sandbox_get_emul(struct udevice *bus, ulong address,
| ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/axi/axi-emul-uclass.c:14:
./arch/sandbox/include/asm/axi.h:48:5: note: previous declaration of
‘axi_sandbox_get_emul’ with type ‘int(struct udevice *, ulong, uint,
struct udevice **)’ {aka ‘int(struct udevice *, long unsigned int,
unsigned int, struct udevice **)’}
48 | int axi_sandbox_get_emul(struct udevice *bus, ulong address, uint length,
| ^~~~~~~~~~~~~~~~~~~~
Adjust the header definition to match the implementation.
Define the size parameter as constant.
Fixes:
|
||
---|---|---|
.. | ||
acpi_table.h | ||
axi.h | ||
bitops.h | ||
byteorder.h | ||
cache.h | ||
clk.h | ||
config.h | ||
cpu.h | ||
dma-mapping.h | ||
eth-raw-os.h | ||
eth.h | ||
fuzzing_engine.h | ||
getopt.h | ||
global_data.h | ||
gpio.h | ||
handoff.h | ||
i2c.h | ||
io.h | ||
irq.h | ||
linkage.h | ||
main.h | ||
malloc.h | ||
mbox.h | ||
posix_types.h | ||
power-domain.h | ||
processor.h | ||
ptrace.h | ||
reset.h | ||
rtc.h | ||
scmi_test.h | ||
sdl.h | ||
sections.h | ||
serial.h | ||
setjmp.h | ||
spi.h | ||
spl.h | ||
state.h | ||
string.h | ||
system.h | ||
test.h | ||
types.h | ||
u-boot-sandbox.h | ||
u-boot.h | ||
unaligned.h |