diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/swiotlb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 170cf56af6a9..4fd6a76e728c 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c | |||
@@ -341,7 +341,7 @@ static void swiotlb_bounce(phys_addr_t phys, char *dma_addr, size_t size, | |||
341 | unsigned long flags; | 341 | unsigned long flags; |
342 | 342 | ||
343 | while (size) { | 343 | while (size) { |
344 | sz = min(PAGE_SIZE - offset, size); | 344 | sz = min_t(size_t, PAGE_SIZE - offset, size); |
345 | 345 | ||
346 | local_irq_save(flags); | 346 | local_irq_save(flags); |
347 | buffer = kmap_atomic(pfn_to_page(pfn), | 347 | buffer = kmap_atomic(pfn_to_page(pfn), |