Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752049AbbEZJDl (ORCPT ); Tue, 26 May 2015 05:03:41 -0400 Received: from [216.228.121.65] ([216.228.121.65]:4855 "EHLO hqemgate16.nvidia.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751142AbbEZJDk (ORCPT ); Tue, 26 May 2015 05:03:40 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Tue, 26 May 2015 02:00:47 -0700 From: Alexandre Courbot To: Konrad Rzeszutek Wilk CC: linux-kernel@vger.kernel.org, gnurou@gmail.com, Alexandre Courbot Subject: [PATCH] swiotlb: do not export map_single function Date: Tue, 26 May 2015 18:02:54 +0900 Message-ID: <1432630974-18608-1-git-send-email-acourbot@nvidia.com> X-Mailer: git-send-email 2.4.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1240 Lines: 36 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 --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/