Some compilers issue a warning when wider integer is casted to narrow
pointer. Supposedly shut down the warning by casting through uintptr_t. Reported by: ian
This commit is contained in:
parent
e7a87117d3
commit
44d95698ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249538
@ -66,8 +66,8 @@ _bus_dmamap_load_vlist(bus_dma_tag_t dmat, bus_dmamap_t map,
|
||||
error = 0;
|
||||
for (; sglist_cnt > 0; sglist_cnt--, list++) {
|
||||
error = _bus_dmamap_load_buffer(dmat, map,
|
||||
(void *)list->ds_addr, list->ds_len, pmap, flags, NULL,
|
||||
nsegs);
|
||||
(void *)(uintptr_t)list->ds_addr, list->ds_len, pmap,
|
||||
flags, NULL, nsegs);
|
||||
if (error)
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user