From: Christoph Hellwig Date: Thu, 12 Apr 2018 12:49:23 +0000 (+0200) Subject: swiotlb: mark is_swiotlb_buffer static X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b65125c6acf38388d3342b37c18c3b6cc97eeb75;p=linux.git swiotlb: mark is_swiotlb_buffer static Signed-off-by: Christoph Hellwig Reviewed-by: Robin Murphy Reviewed-by: Konrad Rzeszutek Wilk --- diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h index 965be92c33b56..7ef541ce8f344 100644 --- a/include/linux/swiotlb.h +++ b/include/linux/swiotlb.h @@ -121,7 +121,6 @@ static inline unsigned int swiotlb_max_segment(void) { return 0; } #endif extern void swiotlb_print_info(void); -extern int is_swiotlb_buffer(phys_addr_t paddr); extern void swiotlb_set_max_segment(unsigned int); extern const struct dma_map_ops swiotlb_dma_ops; diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index 9062b14bc7f4c..26d3af52956fa 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -429,7 +429,7 @@ void __init swiotlb_exit(void) max_segment = 0; } -int is_swiotlb_buffer(phys_addr_t paddr) +static int is_swiotlb_buffer(phys_addr_t paddr) { return paddr >= io_tlb_start && paddr < io_tlb_end; }