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 965be92c33b56a7a77e792961a3794cf3293465e..7ef541ce8f344f547c41478cfea9f25a1d7d5ba4 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 9062b14bc7f4cbcaf4e0eab46275f0afde2e45c7..26d3af52956fa21587a11139e34465689f158345 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;
 }