Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
swiotlb: Don't include linux/swiotlb.h twice in lib/swiotlb.c
intel-iommu: fix build error with INTR_REMAP=y and DMAR=n
swiotlb: add missing __init annotations

+10 -3
+1 -1
arch/x86/kernel/pci-swiotlb_64.c
··· 13 13 14 14 int swiotlb __read_mostly; 15 15 16 - void *swiotlb_alloc_boot(size_t size, unsigned long nslabs) 16 + void * __init swiotlb_alloc_boot(size_t size, unsigned long nslabs) 17 17 { 18 18 return alloc_bootmem_low_pages(size); 19 19 }
+8
include/linux/dma_remapping.h
··· 17 17 struct root_entry; 18 18 19 19 extern void free_dmar_iommu(struct intel_iommu *iommu); 20 + 21 + #ifdef CONFIG_DMAR 20 22 extern int iommu_calculate_agaw(struct intel_iommu *iommu); 23 + #else 24 + static inline int iommu_calculate_agaw(struct intel_iommu *iommu) 25 + { 26 + return 0; 27 + } 28 + #endif 21 29 22 30 extern int dmar_disabled; 23 31
+1 -2
lib/swiotlb.c
··· 23 23 #include <linux/spinlock.h> 24 24 #include <linux/swiotlb.h> 25 25 #include <linux/string.h> 26 - #include <linux/swiotlb.h> 27 26 #include <linux/types.h> 28 27 #include <linux/ctype.h> 29 28 #include <linux/highmem.h> ··· 115 116 __setup("swiotlb=", setup_io_tlb_npages); 116 117 /* make io_tlb_overflow tunable too? */ 117 118 118 - void * __weak swiotlb_alloc_boot(size_t size, unsigned long nslabs) 119 + void * __weak __init swiotlb_alloc_boot(size_t size, unsigned long nslabs) 119 120 { 120 121 return alloc_bootmem_low_pages(size); 121 122 }