The ppc_md and pci_controller_ops methods are unused now and can be removed. The dma_nommu implementation is generic to the generic one except for using max_pfn instead of calling into the memblock API, and all other dma_map_ops instances implement a method of their own.
Showing the changes to kernel/dma (1 of 6 files). Show all
Unified · Split
| @@ -207,7 +207,6 @@ int dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, · 206 unmodified lines | ||
| 207 | 207 | } |
| 208 | 208 | EXPORT_SYMBOL(dma_mmap_attrs); |
| 209 | 209 | |
| 210 | −#ifndef ARCH_HAS_DMA_GET_REQUIRED_MASK | |
| 211 | 210 | static u64 dma_default_get_required_mask(struct device *dev) |
| 212 | 211 | { |
| 213 | 212 | u32 low_totalram = ((max_pfn - 1) << PAGE_SHIFT); |
| @@ -238,7 +237,6 @@ u64 dma_get_required_mask(struct device *dev) · 24 unmodified lines | ||
| 238 | 237 | return dma_default_get_required_mask(dev); |
| 239 | 238 | } |
| 240 | 239 | EXPORT_SYMBOL_GPL(dma_get_required_mask); |
| 241 | −#endif | |
| 242 | 240 | |
| 243 | 241 | #ifndef arch_dma_alloc_attrs |
| 244 | 242 | #define arch_dma_alloc_attrs(dev) (true) |