]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: cast to pointer from integer of different size
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 12 Jun 2022 11:25:22 +0000 (11:25 +0000)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jun 2022 02:09:52 +0000 (03:09 +0100)
commitd4462ba0443d4ea7de290b2ccf90b2a1c0122b93
tree93fbb57d6266f6d2bc244787025af0836a88e91d
parent4f6500aa1a62a80e8df2ffdf16fe4c3eabd99f1c
sandbox: cast to pointer from integer of different size

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@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/misc/qfw_sandbox.c