summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2023-08-23 10:40:47 -0400
committerTom Rini <[email protected]>2023-08-23 10:40:47 -0400
commit97841de680430e235f0954a188f245775cbbb962 (patch)
treec1fd8a6a66dcf3997097ef65f365c45a8cf13251 /common
parent7e6e40c572332b3835c5cb48a08e1d8d404c871c (diff)
parent8f911a7be6bc631d2f4185f7d71025bf97f260e9 (diff)
Merge branch '2023-08-22-assorted-code-cleanups' into next
- Assorted cleanups and fixes for a few tests, how we handle disks/partitions and bounce buffers.
Diffstat (limited to 'common')
-rw-r--r--common/bouncebuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/bouncebuf.c b/common/bouncebuf.c
index 93a35668cc2..934b83f7ec3 100644
--- a/common/bouncebuf.c
+++ b/common/bouncebuf.c
@@ -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);
}