Message ID | 1357298562-28110-1-git-send-email-prathyush.k@samsung.com |
---|---|
State | New |
Headers | show
Return-Path: <patch+caf_=linaro-patchwork=canonical.com@linaro.org> X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D4AD823E21 for <patchwork@peony.canonical.com>; Fri, 4 Jan 2013 11:00:51 +0000 (UTC) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by fiordland.canonical.com (Postfix) with ESMTP id B6887A190D3 for <linaro-patchwork@canonical.com>; Fri, 4 Jan 2013 11:00:50 +0000 (UTC) Received: by mail-vb0-f46.google.com with SMTP id b13so16156070vby.5 for <linaro-patchwork@canonical.com>; Fri, 04 Jan 2013 03:00:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:date:message-id:x-mailer:dlp-filter :x-mtr:x-brightmail-tracker:x-brightmail-tracker:x-cfilter-loop:cc :subject:x-beenthere:x-mailman-version:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:sender :errors-to:x-gm-message-state; bh=ANTsoaBNuEo7yLtRJDl5qN/KEISljSLMkf2vpqV5UEk=; b=krAiSOyOMiYqO4HK8GeMTd5uAl//x2BsfbHX0e4uq/VXJPdmp1k6G661xWqaJPtfKI VNBK2vG/g/NKsHRZXmvlrLSUoA/CivYsGZTICZUO6lQAgbUSyKiaX6uHDL8p435f0H5i 6fJyw4wMQA/Xo1krGJMnPsVIryUzJCq4JeY+6ZRm/BPw6vMt3lyccmPbDTbid26hSt+9 FVwRwK8MiI/a3vxbjaarpDyOmi1xO49ZgbBC6jpLOOUZ4ifcXtUlRezrR2fQHNnw9I8T Ax+euVJ1rA7OzvfwcA3hVMlQDngnF4dURe4OwPieW7f1H8RGnIe64Trt4hEjX7p2SYWN dsXg== X-Received: by 10.58.198.164 with SMTP id jd4mr78920807vec.34.1357297250137; Fri, 04 Jan 2013 03:00:50 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp131520veb; Fri, 4 Jan 2013 03:00:49 -0800 (PST) X-Received: by 10.194.76.137 with SMTP id k9mr83332848wjw.29.1357297248243; Fri, 04 Jan 2013 03:00:48 -0800 (PST) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id i13si87286115wik.18.2013.01.04.03.00.45; Fri, 04 Jan 2013 03:00:48 -0800 (PST) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from <linaro-mm-sig-bounces@lists.linaro.org>) id 1Tr50y-0002vv-81; Fri, 04 Jan 2013 11:00:40 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from <prathyush.k@samsung.com>) id 1Tr50w-0002vG-6W for linaro-mm-sig@lists.linaro.org; Fri, 04 Jan 2013 11:00:38 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MG300ATRL89TOI0@mailout4.samsung.com> for linaro-mm-sig@lists.linaro.org; Fri, 04 Jan 2013 20:00:34 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 49.ED.01231.256B6E05; Fri, 04 Jan 2013 20:00:34 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-bb-50e6b652a032 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 48.ED.01231.156B6E05; Fri, 04 Jan 2013 20:00:33 +0900 (KST) Received: from chrome-ubuntu.sisodomain.com ([107.108.73.106]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MG300AN1L8SN090@mmp2.samsung.com> for linaro-mm-sig@lists.linaro.org; Fri, 04 Jan 2013 20:00:33 +0900 (KST) From: Prathyush K <prathyush.k@samsung.com> To: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org Date: Fri, 04 Jan 2013 06:22:42 -0500 Message-id: <1357298562-28110-1-git-send-email-prathyush.k@samsung.com> X-Mailer: git-send-email 1.8.0 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrCLMWRmVeSWpSXmKPExsWyRsSkVjdo27MAg8m9fBZfrjxkcmD0uP3v MXMAYxSXTUpqTmZZapG+XQJXxtH9Z9kL2rgrjrT9ZmxgXMXZxcjJISFgItH+9CEjhC0mceHe erYuRi4OIYGljBJbDu5mgim6MO0bI0RiOqNEx++nYAkhgQ1MEtM/5oDYbALaEr/m3GUFsUUE 4iSOr7wFVsMM1Pzo5zI2EFtYwEGi6+YDZhCbRUBV4sHqHrA4r4C7xMLfG9kglslJfNjziB2i RkDi2+RDLF2MHEBxWYlNB5hBbpAQ2MMmcajrHCtEvaTEwRU3WCYwCi5gZFjFKJpakFxQnJSe a6hXnJhbXJqXrpecn7uJERhUp/89k9rBuLLB4hCjAAejEg+v5Z2nAUKsiWXFlbmHGCU4mJV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UYi4qTgQAedvlz4YCAAA= X-CFilter-Loop: Reflected Cc: prathyush@chromium.org Subject: [Linaro-mm-sig] [PATCH v2] arm: dma mapping: export arm iommu functions X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." <linaro-mm-sig.lists.linaro.org> List-Unsubscribe: <http://lists.linaro.org/mailman/options/linaro-mm-sig>, <mailto:linaro-mm-sig-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/linaro-mm-sig> List-Post: <mailto:linaro-mm-sig@lists.linaro.org> List-Help: <mailto:linaro-mm-sig-request@lists.linaro.org?subject=help> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/linaro-mm-sig>, <mailto:linaro-mm-sig-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQm32yHGyv5vwhXZq8yJU4J7j0nEruTKAAtDHHmKGObvvcRclZpwrmrZ3nDJ8Z7D5AZkRzrW |
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 6b2fb87..226ebcf 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -1797,6 +1797,7 @@ err2: err: return ERR_PTR(err); } +EXPORT_SYMBOL_GPL(arm_iommu_create_mapping); static void release_iommu_mapping(struct kref *kref) { @@ -1813,6 +1814,7 @@ void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping) if (mapping) kref_put(&mapping->kref, release_iommu_mapping); } +EXPORT_SYMBOL_GPL(arm_iommu_release_mapping); /** * arm_iommu_attach_device @@ -1841,5 +1843,6 @@ int arm_iommu_attach_device(struct device *dev, pr_debug("Attached IOMMU controller to %s device.\n", dev_name(dev)); return 0; } +EXPORT_SYMBOL_GPL(arm_iommu_attach_device); #endif
This patch adds EXPORT_SYMBOL_GPL calls to the three arm iommu functions - arm_iommu_create_mapping, arm_iommu_free_mapping and arm_iommu_attach_device. These three functions are arm specific wrapper functions for creating/freeing/using an iommu mapping and they are called by various drivers. If any of these drivers need to be built as dynamic modules, these functions need to be exported. Changelog v2: using EXPORT_SYMBOL_GPL as suggested by Marek. Signed-off-by: Prathyush K <prathyush.k@samsung.com> --- arch/arm/mm/dma-mapping.c | 3 +++ 1 file changed, 3 insertions(+)