[PATCH] common: bouncebuf: Add missing cast to dma_addr_t

Tom Rini trini at konsulko.com
Wed Aug 23 16:42:34 CEST 2023


On Mon, Aug 14, 2023 at 01:47:47AM +0200, Marek Vasut wrote:

> Fix the following warning produced on qemu-x86_64_defconfig:
> 
> "
> common/bouncebuf.c: In function ‘bounce_buffer_stop’:
> common/bouncebuf.c:82:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>    82 |                 dma_unmap_single((dma_addr_t)state->bounce_buffer,
>       |                                  ^
> "
> 
> The warning is valid, the pointer has to be up-cast first.
> 
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> Reviewed-by: Andrew Davis <afd at ti.com>

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/20230823/1b8e7ec2/attachment.sig>


More information about the U-Boot mailing list