u-boot/arch/sandbox/include/asm
Heinrich Schuchardt ea3ee193cb axi: fix definition of axi_sandbox_get_emul()
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: 9a8bcabd8a ("axi: Add AXI sandbox driver and simple emulator")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-06-01 12:32:03 -04:00
..
acpi_table.h acpi: Move acpi_write_tables() to a generic header 2022-02-11 11:29:23 -05:00
axi.h axi: fix definition of axi_sandbox_get_emul() 2023-06-01 12:32:03 -04:00
bitops.h sandbox: Use the generic bitops headers 2015-11-05 10:52:14 -05:00
byteorder.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cache.h Finish converting CONFIG_SYS_CACHELINE_SIZE to Kconfig 2021-08-31 17:47:49 -04:00
clk.h clk: sandbox: Create a special fixed-rate driver 2021-03-26 17:03:08 +13:00
config.h sandbox: Finish migration to Kconfig 2022-12-22 10:31:48 -05:00
cpu.h timer: Add a test for timer_timebase_fallback 2020-09-30 08:54:45 +08:00
dma-mapping.h dma-mapping: add <asm/dma-mapping.h> for all architectures 2020-02-20 15:09:54 +08:00
eth-raw-os.h sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces 2018-07-26 14:08:19 -05:00
eth.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
fuzzing_engine.h sandbox: Add libfuzzer integration 2022-06-23 12:58:18 -04:00
getopt.h sandbox: Rename getopt sections 2022-06-23 12:58:18 -04:00
global_data.h x86: Move the acpi table to generic global_data 2022-01-25 11:44:36 -07:00
gpio.h doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
handoff.h spl: Add support for passing handoff info to U-Boot proper 2018-11-26 08:25:37 -05:00
i2c.h sandbox: i2c: Move platdata structs to header files 2021-03-26 17:03:08 +13:00
io.h sandbox64: fix: return unsigned long in readq() 2023-04-27 17:01:14 -04:00
irq.h irq: Tidy up of-platdata irq support 2021-09-25 09:46:15 -06:00
linkage.h efi: Use asmlinkage for EFIAPI 2016-10-19 09:01:53 +02:00
main.h sandbox: Decouple program entry from sandbox init 2022-06-23 12:58:18 -04:00
malloc.h test: Support testing malloc() failures 2022-09-29 16:07:58 -04:00
mbox.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
posix_types.h sandbox: correct posix_types.h define 2023-04-28 11:30:18 -06:00
power-domain.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
processor.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ptrace.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
reset.h test: reset: Add tests for the managed API 2020-09-30 11:55:22 -04:00
rtc.h sandbox: Tidy up RTC options 2023-03-02 17:45:58 -05:00
scmi_test.h firmware: scmi: fix sandbox and related tests for clock discovery 2022-03-02 17:42:06 -05:00
sdl.h sandbox: sdl: Add stub sandbox_sdl_remove_display() 2022-06-25 07:54:20 +02:00
sections.h sandbox: Rename getopt sections 2022-06-23 12:58:18 -04:00
serial.h test: serial: Add test for putc/puts 2022-04-14 15:39:15 -04:00
setjmp.h sandbox: Fix setjmp/longjmp 2018-09-23 21:55:30 +02:00
spi.h sandbox: spi: Drop unused sandbox_spi_parse_spec function 2020-12-22 20:39:25 -07:00
spl.h vbe: Support reading the next SPL phase via VBE 2022-10-31 11:03:18 -04:00
state.h sandbox: Allow SPI flash bootdevs to be disabled for tests 2023-01-23 18:11:41 -05:00
string.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
system.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test.h sandbox: video: Fix building without SDL 2023-04-07 17:43:36 +02:00
types.h sandbox: Correctly define BITS_PER_LONG 2023-03-01 11:22:27 -07:00
u-boot-sandbox.h sandbox: mark sandbox_exit() as no return. 2023-04-28 11:30:17 -06:00
u-boot.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
unaligned.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00