All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] swiotlb: do not export map_single function
@ 2015-05-26  9:02 Alexandre Courbot
  0 siblings, 0 replies; only message in thread
From: Alexandre Courbot @ 2015-05-26  9:02 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk; +Cc: linux-kernel, gnurou, Alexandre Courbot

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: Alexandre Courbot <acourbot@nvidia.com>
---
Tried building both arm64 and x64-64 kernels with this patch. No
issue noticed.

 lib/swiotlb.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/swiotlb.c b/lib/swiotlb.c
index 341268841b31..9f85a7e22bc4 100644
--- a/lib/swiotlb.c
+++ b/lib/swiotlb.c
@@ -537,8 +537,9 @@ EXPORT_SYMBOL_GPL(swiotlb_tbl_map_single);
  * Allocates bounce buffer and returns its kernel virtual address.
  */
 
-phys_addr_t map_single(struct device *hwdev, phys_addr_t phys, size_t size,
-		       enum dma_data_direction dir)
+static phys_addr_t
+map_single(struct device *hwdev, phys_addr_t phys, size_t size,
+	   enum dma_data_direction dir)
 {
 	dma_addr_t start_dma_addr = phys_to_dma(hwdev, io_tlb_start);
 
-- 
2.4.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-26  9:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-26  9:02 [PATCH] swiotlb: do not export map_single function Alexandre Courbot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.