diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 22:03:11 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 22:03:11 -0500 |
commit | 0578c3b4d44c34e499e1fd5916ed6c63635b25cf (patch) | |
tree | 7bcf1e4bb08984b2f5671a48c052c26903855ba6 | |
parent | 7d8a804c594b61a05c698126165b5dc417d94a0f (diff) | |
parent | 52942b6b16c6ebb25f4dd4df0208d840ba0cbc5c (diff) |
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
-rw-r--r-- | arch/x86/kernel/pci-swiotlb_64.c | 2 | ||||
-rw-r--r-- | include/linux/dma_remapping.h | 8 | ||||
-rw-r--r-- | lib/swiotlb.c | 3 |
3 files changed, 10 insertions, 3 deletions
diff --git a/arch/x86/kernel/pci-swiotlb_64.c b/arch/x86/kernel/pci-swiotlb_64.c index 242c3440687f..8cba3749a511 100644 --- a/arch/x86/kernel/pci-swiotlb_64.c +++ b/arch/x86/kernel/pci-swiotlb_64.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | int swiotlb __read_mostly; | 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 | return alloc_bootmem_low_pages(size); | 18 | return alloc_bootmem_low_pages(size); |
19 | } | 19 | } |
diff --git a/include/linux/dma_remapping.h b/include/linux/dma_remapping.h index 136f170cecc2..af1dab41674b 100644 --- a/include/linux/dma_remapping.h +++ b/include/linux/dma_remapping.h | |||
@@ -17,7 +17,15 @@ struct dmar_domain; | |||
17 | struct root_entry; | 17 | struct root_entry; |
18 | 18 | ||
19 | extern void free_dmar_iommu(struct intel_iommu *iommu); | 19 | extern void free_dmar_iommu(struct intel_iommu *iommu); |
20 | |||
21 | #ifdef CONFIG_DMAR | ||
20 | extern int iommu_calculate_agaw(struct intel_iommu *iommu); | 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 | extern int dmar_disabled; | 30 | extern int dmar_disabled; |
23 | 31 | ||
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index fa2dc4e5f9ba..7f5e21b9c16b 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <linux/spinlock.h> | 23 | #include <linux/spinlock.h> |
24 | #include <linux/swiotlb.h> | 24 | #include <linux/swiotlb.h> |
25 | #include <linux/string.h> | 25 | #include <linux/string.h> |
26 | #include <linux/swiotlb.h> | ||
27 | #include <linux/types.h> | 26 | #include <linux/types.h> |
28 | #include <linux/ctype.h> | 27 | #include <linux/ctype.h> |
29 | #include <linux/highmem.h> | 28 | #include <linux/highmem.h> |
@@ -116,7 +115,7 @@ setup_io_tlb_npages(char *str) | |||
116 | __setup("swiotlb=", setup_io_tlb_npages); | 115 | __setup("swiotlb=", setup_io_tlb_npages); |
117 | /* make io_tlb_overflow tunable too? */ | 116 | /* make io_tlb_overflow tunable too? */ |
118 | 117 | ||
119 | void * __weak swiotlb_alloc_boot(size_t size, unsigned long nslabs) | 118 | void * __weak __init swiotlb_alloc_boot(size_t size, unsigned long nslabs) |
120 | { | 119 | { |
121 | return alloc_bootmem_low_pages(size); | 120 | return alloc_bootmem_low_pages(size); |
122 | } | 121 | } |