openbsd_network: Adjust reference-taking in bus_dmamap_load_mbuf.

dm_segs is a flexible-length array at the end of a structure.
Taking its address with & gives the same address as using it without,
however, the types are not identical in the different cases.

This should fix some warnings about incompatibile pointer types
while not changing behavior.
This commit is contained in:
Augustin Cavalier 2022-06-21 23:23:02 -04:00
parent 4b6af34c06
commit 7e1c1d3020

View File

@ -84,7 +84,7 @@ static int
bus_dmamap_load_mbuf_obsd(bus_dma_tag_t tag, bus_dmamap_t dmam, struct mbuf *chain, int flags)
{
return bus_dmamap_load_mbuf_sg(dmam->_dmat, dmam->_dmamp, chain,
&dmam->dm_segs, &dmam->dm_nsegs, flags);
dmam->dm_segs, &dmam->dm_nsegs, flags);
}
#define bus_dmamap_load_mbuf bus_dmamap_load_mbuf_obsd