Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/via Avoid void *->paddr_t cas...
details: https://anonhg.NetBSD.org/src/rev/cbef6bb86f9e
branches: trunk
changeset: 337823:cbef6bb86f9e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Apr 29 11:36:43 2015 +0000
description:
Avoid void *->paddr_t cast warning on i386.
diffstat:
sys/external/bsd/drm2/dist/drm/via/via_dmablit.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 6d6c6cbf727b -r cbef6bb86f9e sys/external/bsd/drm2/dist/drm/via/via_dmablit.c
--- a/sys/external/bsd/drm2/dist/drm/via/via_dmablit.c Wed Apr 29 11:28:32 2015 +0000
+++ b/sys/external/bsd/drm2/dist/drm/via/via_dmablit.c Wed Apr 29 11:36:43 2015 +0000
@@ -135,10 +135,11 @@
if (mode == 1) {
#ifdef __NetBSD__
+ const vaddr_t cur_va = (vaddr_t)cur_mem;
const bus_dma_segment_t *const seg =
- &vsg->dmamap->dm_segs[atop(cur_mem)];
+ &vsg->dmamap->dm_segs[atop(cur_va)];
desc_ptr->mem_addr =
- seg->ds_addr + trunc_page((vaddr_t)cur_mem);
+ seg->ds_addr + trunc_page(cur_va);
#else
desc_ptr->mem_addr =
dma_map_page(&pdev->dev,
Home |
Main Index |
Thread Index |
Old Index