mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
common: bouncebuf: Add missing cast to dma_addr_t
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@mailbox.org> Reviewed-by: Andrew Davis <afd@ti.com>
This commit is contained in:
parent
7f0fba9fb0
commit
3f9cff669b
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ int bounce_buffer_stop(struct bounce_buffer *state)
|
|||
{
|
||||
if (state->flags & GEN_BB_WRITE) {
|
||||
/* Invalidate cache so that CPU can see any newly DMA'd data */
|
||||
dma_unmap_single((dma_addr_t)state->bounce_buffer,
|
||||
dma_unmap_single((dma_addr_t)(uintptr_t)state->bounce_buffer,
|
||||
state->len_aligned,
|
||||
DMA_BIDIRECTIONAL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue