Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 023600f1 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Konrad Rzeszutek Wilk
Browse files

swiotlb: do not export map_single function



The map_single() function is not defined as static, even though it
doesn't seem to be used anywhere else in the kernel. Make it static to
avoid namespace pollution since this is a rather generic symbol.

Signed-off-by: default avatarAlexandre Courbot <acourbot@nvidia.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent c65b99f0
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -537,7 +537,8 @@ EXPORT_SYMBOL_GPL(swiotlb_tbl_map_single);
 * Allocates bounce buffer and returns its kernel virtual address.
 * Allocates bounce buffer and returns its kernel virtual address.
 */
 */


phys_addr_t map_single(struct device *hwdev, phys_addr_t phys, size_t size,
static phys_addr_t
map_single(struct device *hwdev, phys_addr_t phys, size_t size,
	   enum dma_data_direction dir)
	   enum dma_data_direction dir)
{
{
	dma_addr_t start_dma_addr = phys_to_dma(hwdev, io_tlb_start);
	dma_addr_t start_dma_addr = phys_to_dma(hwdev, io_tlb_start);