From patchwork Thu Dec 27 07:14:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prathyush X-Patchwork-Id: 13716 Return-Path: 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 DD2A823E06 for ; Thu, 27 Dec 2012 06:52:18 +0000 (UTC) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by fiordland.canonical.com (Postfix) with ESMTP id 60175A18306 for ; Thu, 27 Dec 2012 06:52:18 +0000 (UTC) Received: by mail-vb0-f50.google.com with SMTP id fr13so9399744vbb.23 for ; Wed, 26 Dec 2012 22:52:17 -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=P9+mlRlJUPuYVmJaOxJGJGEJtPR5nxJnqYjp5tLJHaw=; b=SMaI689q2FdTsPrVZgVsWwE1LNkkA1LlGA18Ck1iwNf127vV0S55X736kHO6AvzLqb zQ3IQMI47aul/yotJwSVg3E1oYjBbptTkpDcBsL7KU6VP3UQUeu66xP5sL7qZe0Nzlo4 eFENVuhfcqLbYOf5XbqUsXynaFQU8syBmfYwFcmdjOsRGRRbkciwLDKbmC5i1F3K+heo M7+ew7F44Yd0wysPxjZGQvwcKq8tUbXO34HPXETJRxZhOuxjYh4ChgEh3/xBftONAvsH O4+jg4T42ZGcj/lFGBBXDTd8u0eeAQUFea2mIphlMHVH1ka6xr9dOqE7jE+yChryWeeN lJFA== X-Received: by 10.52.18.207 with SMTP id y15mr39092884vdd.8.1356591137845; Wed, 26 Dec 2012 22:52:17 -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.214.195 with SMTP id oc3csp6177vec; Wed, 26 Dec 2012 22:52:17 -0800 (PST) X-Received: by 10.204.149.88 with SMTP id s24mr14589140bkv.14.1356591136248; Wed, 26 Dec 2012 22:52:16 -0800 (PST) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id hu5si49483539bkc.114.2012.12.26.22.52.05; Wed, 26 Dec 2012 22:52:16 -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 ) id 1To7Jw-0006LW-Mr; Thu, 27 Dec 2012 06:52:00 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1To7Jv-0006HC-GB for linaro-mm-sig@lists.linaro.org; Thu, 27 Dec 2012 06:51:59 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFO00645GEIKSR0@mailout3.samsung.com> for linaro-mm-sig@lists.linaro.org; Thu, 27 Dec 2012 15:51:55 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.126]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 14.37.12699.B00FBD05; Thu, 27 Dec 2012 15:51:55 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-86-50dbf00b5b67 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 93.37.12699.B00FBD05; Thu, 27 Dec 2012 15:51:55 +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 <0MFO009SEGEEF090@mmp2.samsung.com> for linaro-mm-sig@lists.linaro.org; Thu, 27 Dec 2012 15:51:55 +0900 (KST) From: Prathyush K To: linux-arm-kernel@lists.infradead.org, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org Date: Thu, 27 Dec 2012 02:14:18 -0500 Message-id: <1356592458-11077-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+NgFjrCLMWRmVeSWpSXmKPExsWyRsSkTpf7w+0Ag029chZfrjxkcmD0uP3v MXMAYxSXTUpqTmZZapG+XQJXxuUbbawFfzkqZv3fyd7AeJq9i5GTQ0LAROLgrimsELaYxIV7 69m6GLk4hASWMko0r/rLBFM088FxdojEdEaJ59+eQ1VtYJJ487YZrJ1NQFvi15y7YLaIQJzE 8ZW3wLqZgbof/VzGBmILC9hKzDzcAraaRUBVYtPjQ0A2BwevgLvEhDMCEMvkJD7seQRVIiDx bfIhFpASCQFZiU0HmEHWSghsYZNYv305G0S9pMTBFTdYJjAKLmBkWMUomlqQXFCclJ5rpFec mFtcmpeul5yfu4kRGFSn/z2T3sG4qsHiEKMAB6MSD6+i9e0AIdbEsuLK3EOMEhzMSiK80zcD hXhTEiurUovy44tKc1KLDzH6AF0ykVlKNDkfGPB5JfGGxibmpsamlkZGZqamOISVxHmbPVIC hATSE0tSs1NTC1KLYM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m: 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." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQmMkfaLI25rwg7guciKHxoEQfaCdt1mybRcRykrhv9K2sGVo7YRrMHm3T7aZa4IpXB3Zgj8 This patch adds EXPORT_SYMBOL calls to the three arm iommu functions - arm_iommu_create_mapping, arm_iommu_free_mapping and arm_iommu_attach_device. These functions can now be called from dynamic modules. Signed-off-by: Prathyush K --- arch/arm/mm/dma-mapping.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 6b2fb87..c0f0f43 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(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(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(arm_iommu_attach_device); #endif