swiotlb: mark is_swiotlb_buffer static
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>
This commit is contained in:
Родитель
21bb9d64c5
Коммит
b65125c6ac
|
@ -121,7 +121,6 @@ static inline unsigned int swiotlb_max_segment(void) { return 0; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void swiotlb_print_info(void);
|
extern void swiotlb_print_info(void);
|
||||||
extern int is_swiotlb_buffer(phys_addr_t paddr);
|
|
||||||
extern void swiotlb_set_max_segment(unsigned int);
|
extern void swiotlb_set_max_segment(unsigned int);
|
||||||
|
|
||||||
extern const struct dma_map_ops swiotlb_dma_ops;
|
extern const struct dma_map_ops swiotlb_dma_ops;
|
||||||
|
|
|
@ -429,7 +429,7 @@ void __init swiotlb_exit(void)
|
||||||
max_segment = 0;
|
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;
|
return paddr >= io_tlb_start && paddr < io_tlb_end;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче