diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 19:03:11 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-05 19:03:11 -0800 |
commit | 0578c3b4d44c34e499e1fd5916ed6c63635b25cf (patch) | |
tree | 7bcf1e4bb08984b2f5671a48c052c26903855ba6 /lib/swiotlb.c | |
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
Diffstat (limited to 'lib/swiotlb.c')
-rw-r--r-- | lib/swiotlb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index fa2dc4e5f9b..7f5e21b9c16 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -23,7 +23,6 @@ #include <linux/spinlock.h> #include <linux/swiotlb.h> #include <linux/string.h> -#include <linux/swiotlb.h> #include <linux/types.h> #include <linux/ctype.h> #include <linux/highmem.h> @@ -116,7 +115,7 @@ setup_io_tlb_npages(char *str) __setup("swiotlb=", setup_io_tlb_npages); /* make io_tlb_overflow tunable too? */ -void * __weak swiotlb_alloc_boot(size_t size, unsigned long nslabs) +void * __weak __init swiotlb_alloc_boot(size_t size, unsigned long nslabs) { return alloc_bootmem_low_pages(size); } |