From patchwork Wed Mar 23 15:05:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8650781 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 45C629F44D for ; Wed, 23 Mar 2016 15:05:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 543D820211 for ; Wed, 23 Mar 2016 15:05:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4FB3D20259 for ; Wed, 23 Mar 2016 15:05:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754277AbcCWPFw (ORCPT ); Wed, 23 Mar 2016 11:05:52 -0400 Received: from mail-by2on0058.outbound.protection.outlook.com ([207.46.100.58]:5440 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753030AbcCWPFv (ORCPT ); Wed, 23 Mar 2016 11:05:51 -0400 Received: from BN3PR0301CA0008.namprd03.prod.outlook.com (10.160.180.146) by BLUPR0301MB2034.namprd03.prod.outlook.com (10.164.22.24) with Microsoft SMTP Server (TLS) id 15.1.443.12; Wed, 23 Mar 2016 15:05:48 +0000 Received: from BL2FFO11FD035.protection.gbl (2a01:111:f400:7c09::194) by BN3PR0301CA0008.outlook.office365.com (2a01:111:e400:4000::18) with Microsoft SMTP Server (TLS) id 15.1.447.15 via Frontend Transport; Wed, 23 Mar 2016 15:05:48 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD035.mail.protection.outlook.com (10.173.161.131) with Microsoft SMTP Server (TLS) id 15.1.443.6 via Frontend Transport; Wed, 23 Mar 2016 15:05:48 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u2NF5fsi030921; Wed, 23 Mar 2016 08:05:45 -0700 From: Tudor Ambarus To: CC: , , , , Tudor Ambarus Subject: [PATCH v2 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Wed, 23 Mar 2016 17:05:38 +0200 Message-ID: <1458745539-1252-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1458745539-1252-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1458745539-1252-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131032191482591650; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(50986999)(81166005)(33646002)(76176999)(92566002)(2950100001)(77096005)(87936001)(1096002)(86362001)(110136002)(1220700001)(50466002)(11100500001)(586003)(47776003)(106466001)(5003940100001)(229853001)(105606002)(6806005)(2351001)(50226001)(36756003)(189998001)(48376002)(19580405001)(104016004)(2906002)(4326007)(5008740100001)(19580395003)(85426001)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB2034; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD035; 1:cUgdJPDjRSFVgHhiz1FiDk1ABFtCUAzbHGipS3OVpEPAnge/1BGEU3jVMr5gYb9pIIP6CMWeQDocYDVcERB9dn9+2k/nOWToSTVUA5nNifBCVufoFbnpXvmmJFS6XRO/18HeJs1KWdFakJTVgQR8c1HhVUXEBJ4EepVTMfnbuJc4x6lphH+++fkTOj+5/I8+5j8xwHXsRl7OB8Dbb2NHTAK0kpIXJKFlV7LMmeUoXIV/JYRoTEr+nzDK6yqbr9kr9SSLpc+h3vPKogaAEdfHZHvZktal2lr0eq0hEhrAbgBAfSzPFWli7U1FM6CpmhdCDWLgpk6eXRIUEs4Tc/ys9LFcIqTxixZmbg16wV3nCZEpV/iRZfI9R7lLYpjhkworOh1QobXENPiHvD7ZppC4Q/QTH+uknrgEEa3OTc25Bbgkhc+zINeN14OyapSkkpf3mEAHVSR9GbzBUFl4tr0EnyWfAgVIEcD7JPlCfHfhDM9WWpKlvhqBsgf376BNVkXKh69uJvXxemTcnLeiNi1jXrPtuGH/TPa3UrqHM+UmsPU3fu+yZkjlEOmpj1UEdrtyQxj55twlNMjcFCTVnDSvBVSePCSR3Qo+Eh8osJprRilmyNrJ0tMcg3sl1y7xRelg6gJyH1gYMwYqERBctXx1xqXVP0pKEVrGQzPhJbofp0s= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d4d7ba6b-df48-4cc4-36e0-08d3532c9de8 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB2034; 2:AkJBHsGt3NGH1j1T3Zqai5/hQZpDJSVVFX3oXNoibxgmQcUR9v9V22MCEmImw6HSXVZy++8U2WkspGAvfC46IamdmwUo5HwDNgU/telUrxbuzNoQXz4U65Kw/KKTRgW8A/sfe/oRWTWuRrjg6CFwsPkTov9Rr8nN0PVRGlCmc2HtIRBsPBQ5yxWk5pCxWC4g; 3:vX82QH2J1WQTP6hXXbfOG6MK30qM/fQyjJwuH3oxCLpJmp+2RSV8i1PhaLYAlapLzLNh5B6rVSDeEUF8VThqD8yzxixH+lkyagxkHt1KzkCWuNL/9HIm0Pmw8lsh5cR4nEb28qqRbjCoRNCLRvt+7uSvusHDfivZuJJkKgGBLHPjsTbeaIxaNFCaHDUaAy+RpNCMqXQ890TJwlEz+FRx/71DDbHPGxJJuXWHU3Mf6ds=; 25:JWH0heweOcP2v/THPR5LeX2ABIguY2qxTkQJVFmGfIhp1/c+mBl9Ql9DgUXmJkpBpKViP10DZ0z/gT0rMQTs9CUGoTNw1J6sEbe3+jdb95sgaTu1zptxBDi/bM/FaOChrk40Hm6cYjtx/ZHKja4g7iTU8A0FKHLhGW7k1leWIH89UcvZYj5QlqCpnjvZ/cC5rXRmjdF1Uzf6pfwjRQDi5I8jkB/wSxi0m4ITfN+hPLZ5DgcRddtwGtwSyiomFd4seZqPCMWhmMRD6zials5NVdLlX9RzmV1RsUCs3sZU/2PU7cbXzmTTUNVfLYjq73xzXt+9DJQnbLESr5yYHfIsqnILqRWNrVyTE6XlVuGoWMaFTlRoau+fFUh3r5AytgwGmjY8VHmN3H3qpKpkPBSZnuXWDh+BzY8V2jSc5HcBfH8WETH0ut0R/WGb+yufIviBi1kXR7PXisBOIXf0vlUOf1jUrJGzAowMG7rKQfw3iYIlz395LszPR /QjXyBbwPTUegMaV/1DrSlEp0W9lxDEOw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0301MB2034; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13018025)(5005006)(13017025)(13023025)(13024025)(8121501046)(10201501046)(3002001); SRVR:BLUPR0301MB2034; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR0301MB2034; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB2034; 4:rBR1UdIjibpDOSULDhs9VcyEOZLcFHSUCOT/aB4vXRfrFc7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AYBuh2g8/2kGtjggi6Rp42it0D4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2016 15:05:48.0251 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB2034 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Used in caam driver. Export the symbol since the caam driver can be built as a module. Signed-off-by: Tudor Ambarus Acked-by: Cristian Stoica --- crypto/scatterwalk.c | 5 +++-- include/crypto/scatterwalk.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c index bc3222d..03d34f9 100644 --- a/crypto/scatterwalk.c +++ b/crypto/scatterwalk.c @@ -47,8 +47,8 @@ void *scatterwalk_map(struct scatter_walk *walk) } EXPORT_SYMBOL_GPL(scatterwalk_map); -static void scatterwalk_pagedone(struct scatter_walk *walk, int out, - unsigned int more) +void scatterwalk_pagedone(struct scatter_walk *walk, int out, + unsigned int more) { if (out) { struct page *page; @@ -69,6 +69,7 @@ static void scatterwalk_pagedone(struct scatter_walk *walk, int out, scatterwalk_start(walk, sg_next(walk->sg)); } } +EXPORT_SYMBOL_GPL(scatterwalk_pagedone); void scatterwalk_done(struct scatter_walk *walk, int out, int more) { diff --git a/include/crypto/scatterwalk.h b/include/crypto/scatterwalk.h index 8b799c5..6535a20 100644 --- a/include/crypto/scatterwalk.h +++ b/include/crypto/scatterwalk.h @@ -89,6 +89,8 @@ void scatterwalk_copychunks(void *buf, struct scatter_walk *walk, void scatterwalk_sg_copychunks(struct scatter_walk *dest, struct scatter_walk *src, size_t nbytes); void *scatterwalk_map(struct scatter_walk *walk); +void scatterwalk_pagedone(struct scatter_walk *walk, int out, + unsigned int more); void scatterwalk_done(struct scatter_walk *walk, int out, int more); void scatterwalk_map_and_copy(void *buf, struct scatterlist *sg,