[PATCH 1/1] sandbox: cast to pointer from integer of different size
Simon Glass
sjg at chromium.org
Tue Jun 28 15:37:52 CEST 2022
On Sun, Jun 12, 2022 at 7:25 PM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> Building sandbox_defconfig on ARMv7 with HOST_32BIT=y results in:
>
> drivers/misc/qfw_sandbox.c:51:25: warning:
> cast to pointer from integer of different size [-Wint-to-pointer-cast]
> 51 | void *address = (void *)be64_to_cpu(dma->address);
>
> Add the missing type conversion.
>
> Fixes: 69512551aa84 ("test: qemu: add qfw sandbox driver, dm tests, qemu tests")
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> drivers/misc/qfw_sandbox.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list