Skip to contentSkip to conversation

swiotlb cleanup

PATCH In review Jan Beulich 1 participant 1 message Jan 2, 2007 Library code

lore
Share & tools
lore
#0 lore raw

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

arch/x86_64/kernel/pci-swiotlb.c +1 -1
Index: 2.6.20-rc3-swiotlb-bugs/arch/x86_64/kernel/pci-swiotlb.c
===================================================================
@@ -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