[PATCH 1/1] axi: fix definition of axi_sandbox_get_emul()
Tom Rini
trini at konsulko.com
Thu Jun 1 21:48:43 CEST 2023
On Wed, May 10, 2023 at 11:59:20AM +0200, Heinrich Schuchardt wrote:
> 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: 9a8bcabd8ada ("axi: Add AXI sandbox driver and simple emulator")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230601/55ca42d3/attachment.sig>
More information about the U-Boot
mailing list