aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/pci-swiotlb_64.c2
-rw-r--r--lib/swiotlb.c2
2 files changed, 2 insertions, 2 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
14int swiotlb __read_mostly; 14int swiotlb __read_mostly;
15 15
16void *swiotlb_alloc_boot(size_t size, unsigned long nslabs) 16void * __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/lib/swiotlb.c b/lib/swiotlb.c
index fa2dc4e5f9ba..b6d0aae4fd31 100644
--- a/lib/swiotlb.c
+++ b/lib/swiotlb.c
@@ -116,7 +116,7 @@ setup_io_tlb_npages(char *str)
116__setup("swiotlb=", setup_io_tlb_npages); 116__setup("swiotlb=", setup_io_tlb_npages);
117/* make io_tlb_overflow tunable too? */ 117/* make io_tlb_overflow tunable too? */
118 118
119void * __weak swiotlb_alloc_boot(size_t size, unsigned long nslabs) 119void * __weak __init swiotlb_alloc_boot(size_t size, unsigned long nslabs)
120{ 120{
121 return alloc_bootmem_low_pages(size); 121 return alloc_bootmem_low_pages(size);
122} 122}