|
@@ -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);
|
|
|
}
|