swiotlb: mark is_swiotlb_buffer static
authorChristoph Hellwig <hch@lst.de>
Thu, 12 Apr 2018 12:49:23 +0000 (14:49 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 19 Oct 2018 06:42:39 +0000 (08:42 +0200)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
include/linux/swiotlb.h
kernel/dma/swiotlb.c

index 965be92..7ef541c 100644 (file)
@@ -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;
index 9062b14..26d3af5 100644 (file)
@@ -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;
 }