swiotlb cleanup
PATCH 3/4 swiotlb cleanup
This patch
- adds proper __init decoration to swiotlb's init code (and the code calling it, where not already the case)
- replaces uses of 'unsigned long' with dma_addr_t where appropriate
- does miscellaneous simplicfication and cleanup
Signed-off-by Jan Beulich <[email protected]>
arch/x86_64/kernel/pci-swiotlb.c +1 -1
@@ -29,7 +29,7 @@ struct dma_mapping_ops swiotlb_dma_ops = .dma_supported = NULL, }; -void pci_swiotlb_init (void ) +void __init pci_swiotlb_init (void ) {/* don't initialize swiotlb if iommu=off (no_iommu=1) */ if (!iommu_detected && !no_iommu && end_pfn >MAX_DMA32_PFN )
lib/swiotlb.c +32 -24
163 lines not on this page · raw message