LinuxKPI buildfix for 32-bit DMA architectures after r346645.

The <sys/pctrie.h> APIs expect a 64-bit DMA key.
This is fine as long as the DMA is less than or equal to 64 bits, which
is currently the case.

Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2019-04-25 09:13:15 +00:00
parent 56a70105df
commit d4fedb75ec

View File

@ -406,9 +406,11 @@ linux_pci_unregister_driver(struct pci_driver *pdrv)
mtx_unlock(&Giant);
}
CTASSERT(sizeof(dma_addr_t) <= sizeof(uint64_t));
struct linux_dma_obj {
void *vaddr;
dma_addr_t dma_addr;
uint64_t dma_addr;
bus_dmamap_t dmamap;
};