[PATCH] axi: fix a warning
Simon Glass
sjg at chromium.org
Tue Jun 20 12:04:00 CEST 2023
On Mon, 19 Jun 2023 at 21:36, Sergei Antonov <saproj at gmail.com> wrote:
>
> Fix an enum/integer mismatch encountered in 'sandbox_defconfig' build.
>
> .../u-boot/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 .../u-boot/drivers/axi/axi-emul-uclass.c:14:
> .../u-boot/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,
> | ^~~~~~~~~~~~~~~~~~~~
>
> Make function declaration match function definition.
>
> Cc: Mario Six <mario.six at gdsys.cc>
> Signed-off-by: Sergei Antonov <saproj at gmail.com>
> ---
> arch/sandbox/include/asm/axi.h | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list