Skip to contentSkip to conversation

ia64: swiotlb cleanup

PATCH Applied [email protected] 1 participant 1 message Feb 6, 2007 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 5/13 ia64: swiotlb cleanup

From: "Jan Beulich" <[email protected]>

- add proper __init decoration to swiotlb's init code (and the code calling it, where not already the case)

- replace uses of 'unsigned long' with dma_addr_t where appropriate

- do miscellaneous simplicfication and cleanup

---

 arch/x86_64/kernel/pci-swiotlb.c |    2 -
 lib/swiotlb.c                    |   56 ++++++++++++++++-------------
 2 files changed, 33 insertions(+), 25 deletions(-)
arch/x86_64/kernel/pci-swiotlb.c renamed from arch/x86_64/kernel/pci-swiotlb.c~ia64-swiotlb-cleanup +1 -1
diff -puN arch/x86_64/kernel/pci-swiotlb.c~ia64-swiotlb-cleanup 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 renamed from lib/swiotlb.c~ia64-swiotlb-cleanup +32 -24

163 lines not on this page · raw message

_