diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-04-25 09:13:15 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-04-25 09:13:15 +0000 |
| commit | d4fedb75ec1724fbea1f7c12159508d3ee3a4eed (patch) | |
| tree | 40ee97cfd949256c6c81a97ef524ee8940668334 /sys/compat/linuxkpi | |
| parent | 56a70105df148e611d90c1c7dbce516b9aa52825 (diff) | |
Notes
Diffstat (limited to 'sys/compat/linuxkpi')
| -rw-r--r-- | sys/compat/linuxkpi/common/src/linux_pci.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index 886cb28bd4b7..4e93827e2e96 100644 --- a/sys/compat/linuxkpi/common/src/linux_pci.c +++ b/sys/compat/linuxkpi/common/src/linux_pci.c @@ -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; }; |
