diff options
Diffstat (limited to 'kernel/dma/swiotlb.c')
-rw-r--r-- | kernel/dma/swiotlb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index dd6a8e2d53a7..56ac77a80b1f 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c | |||
@@ -215,13 +215,13 @@ int __init swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose) | |||
215 | alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(int)); | 215 | alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(int)); |
216 | io_tlb_list = memblock_alloc(alloc_size, PAGE_SIZE); | 216 | io_tlb_list = memblock_alloc(alloc_size, PAGE_SIZE); |
217 | if (!io_tlb_list) | 217 | if (!io_tlb_list) |
218 | panic("%s: Failed to allocate %lu bytes align=0x%lx\n", | 218 | panic("%s: Failed to allocate %zu bytes align=0x%lx\n", |
219 | __func__, alloc_size, PAGE_SIZE); | 219 | __func__, alloc_size, PAGE_SIZE); |
220 | 220 | ||
221 | alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(phys_addr_t)); | 221 | alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(phys_addr_t)); |
222 | io_tlb_orig_addr = memblock_alloc(alloc_size, PAGE_SIZE); | 222 | io_tlb_orig_addr = memblock_alloc(alloc_size, PAGE_SIZE); |
223 | if (!io_tlb_orig_addr) | 223 | if (!io_tlb_orig_addr) |
224 | panic("%s: Failed to allocate %lu bytes align=0x%lx\n", | 224 | panic("%s: Failed to allocate %zu bytes align=0x%lx\n", |
225 | __func__, alloc_size, PAGE_SIZE); | 225 | __func__, alloc_size, PAGE_SIZE); |
226 | 226 | ||
227 | for (i = 0; i < io_tlb_nslabs; i++) { | 227 | for (i = 0; i < io_tlb_nslabs; i++) { |