From patchwork Wed Apr 6 13:37:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8762381 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4B63FC0553 for ; Wed, 6 Apr 2016 13:38:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF0D02020F for ; Wed, 6 Apr 2016 13:38:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF23520204 for ; Wed, 6 Apr 2016 13:38:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751628AbcDFNiK (ORCPT ); Wed, 6 Apr 2016 09:38:10 -0400 Received: from mail-bl2on0075.outbound.protection.outlook.com ([65.55.169.75]:14403 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751811AbcDFNiI (ORCPT ); Wed, 6 Apr 2016 09:38:08 -0400 Received: from DM2PR03CA0045.namprd03.prod.outlook.com (10.141.96.44) by DM2PR0301MB1229.namprd03.prod.outlook.com (10.160.219.18) with Microsoft SMTP Server (TLS) id 15.1.447.15; Wed, 6 Apr 2016 13:38:07 +0000 Received: from BL2FFO11FD031.protection.gbl (2a01:111:f400:7c09::183) by DM2PR03CA0045.outlook.office365.com (2a01:111:e400:2428::44) with Microsoft SMTP Server (TLS) id 15.1.447.15 via Frontend Transport; Wed, 6 Apr 2016 13:38:06 +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 BL2FFO11FD031.mail.protection.outlook.com (10.173.160.71) with Microsoft SMTP Server (TLS) id 15.1.453.6 via Frontend Transport; Wed, 6 Apr 2016 13:38:05 +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 u36Dbx2x025617; Wed, 6 Apr 2016 06:38:03 -0700 From: Tudor Ambarus To: CC: , , , , Tudor Ambarus Subject: [PATCH v3 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Wed, 6 Apr 2016 16:37:55 +0300 Message-ID: <1459949876-11989-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1459949876-11989-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1459949876-11989-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131044234856076494; (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)(1110001)(1109001)(339900001)(199003)(189002)(47776003)(229853001)(50986999)(77096005)(106466001)(76176999)(6806005)(104016004)(2351001)(87936001)(19580405001)(5008740100001)(19580395003)(85426001)(105606002)(36756003)(4326007)(81166005)(33646002)(2906002)(1096002)(1220700001)(50466002)(50226001)(86362001)(189998001)(586003)(92566002)(110136002)(48376002)(2950100001)(5003940100001)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB1229; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD031; 1:7fD+6jJLxje3kriFN8kQv6WA5VL690WYKlNRK0tH3kccWND06cAOF6Xjf5InHtRt8ITt6oVhLz4npZ1amPPGfEz0eUTUlWKBnzq7aK6rN6yHr9mq4hRxvSnfDlDVLcPK9jhE9er9+DjlVUx78AJU2Mo9WV6buIBsB2f0ox07iewYNz5BPmBr/sR54x4BREpVvY2rVjPbNbrXnN+6zE3cR8tFWjx0XeffIxMsW8s3WZFz+YrLz5HDu3pFGQPHTeR0pNni/VovjXwWm0HZDpUGV1V2TUpdpIqbEpWyomCrWV38ij9Em73D+3HGaBM865/21qYiii0ChMZ12mYyYTVDfhaRWzgbr0UCX0yyPWjxlzq9Y0RO5vSL1J3oXBfyIzErFMAvezGRCL4OL/gbZho/IM6dnPjU6CN6J0SvDpG3iG6ccNdHhRE5uGoJrzWm5RJj2A07CbScu656TpWVnZjmvpBq5JuWmKBeG38n4f76DOJRy51ftnsSOZ1+bQLhxsctC07pLY8y0pOWpGqFIcOCJPoJsSNGSad5CClu1FM/FZJ/1Vz9hBbuyfijYbjESl0WKXKclVDAYEt47upQwyYz3KUimwLodEbZ9bUM2eo1xaqz5n4jIjjw/2DLwmEBsflp3RXaIbn0B+FQlLaiXQEMqMykA+k+tZ/cHtWs1V3Sd0TQd9VWrgLxai1TBv1xdqyY MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: a7ef8152-2e59-48ba-336d-08d35e20aeea X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1229; 2:EdpNMBOPT4QfanH9aGpyGrFkWYCZLxXueVokerakvqu5wAFLMsjgyplN1Q8+/FaO5h+yz3SboJnMpqwdCoLQhb8fx/f2AKS9UIdVHAW2qrqC7mAVa/pC3Zukt2bjtWNCexyK1brf6OudIcEBem7bmQz21KI80XDUrNMcrM/hEB7XEpgTBO1bcWSggc+oeKB+; 3:U8jPWbtk79e2rACKk/VZqWhTFxetcRQcoFofPREm0dflIslZkAEjcsGvnCTZmhQh5uc3mSy+nOeoB2O7c9XDzCpFRbDYV+rufw+sd0MzPMTVn9uhgMzSOJ+8vYuw6KT2RPDshzHpQe+pvwwbaT15/6GFzlyFpeqP8aXToF8sTkg2CH0psc26weOTmdFe2gUOgCQwSY4fT/GFoy0drdGflnS8RRi5gGwtwfiASzHPOYQ= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB1229; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1229; 25:Sh7Ycfm+E7H9PmQyD6N5IrMD79Jlw+dZo6mZ6KYdpIPPN0O8zMeNtOoBdsbfoM1S6yJGiPDUoquk9EjS8wrwPbIK8JZLWU+4Cnt9CieuktnjSAJAsIuWSuw4ZhgFVHwPzZ50KdTMa3bXsPhI/wVF7gdAguhUno9A+Jp+64gElL7vxU5gkpV9OmoKFJV8aDSXyuLdI/L5rJ9f2pfOoL4omrB+pSNlHLoi4rgLexUYsmjNbEtqZy0C1sBHW0D8zdMYY7aZRL1drXLXBaDoInL/SHscoPciRIrW5oQDSj0gIABTx3GYgfv7DiTY5WN+Ikw7gKK9plVgpK7TX5ahRLjG9FhvP8wHBe/Jbd9nUD98yCKbOTmHgXauuWXFFZNcpw6SMPHGNG1WgHC40CC9E4+mQe4hsQ62q34lxF3jfB17wEuG8WpJBzlqxY7HLQQx1FJMKwL9wGrJO0K1a407Hg7BL/5ED6qmiURQyVUMRaq13bDaTvPORot6VTj1f/OaoJp0uFr0t51p2JusxmBePpQWho78cZsyXPXqvKsNNEa5NyauXkETrntCrHmy/DLbO98v8eAYncljpuJ80NbCJihq7h1RT0wr3udks8/MuofgII8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(13023025)(13015025)(8121501046)(5005006)(13017025)(13018025)(3002001)(10201501046)(6055026); SRVR:DM2PR0301MB1229; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB1229; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1229; 4:V1eAtpXMe7q6PG1vdM8zs2wP4dpTHVS/3gOZ1UxCju9LrAMIl+bR+pkDuJEQvNm4EfJnPMurgRATWaE9XLxIGquOpt0diFyd9KKIaUcqDzyaAjSs0zIZ8wNNNd0OfhGUGByELuqv1eOcfDolsnjPQaxK1pl819D1cJ4X4iWcKGCWJWBgmwNiSrXZVQAWA9ridyVyUGDLwNU+CYxOauj7NT7XRyoPsy6Re2CYdQBv+uPc7zbmSwaMrs+ghg2bUDLNPCvv29TU5Enr3wawev0UrJcn9Qpe19/SlU60kQs8OQMGD5j00N356fbhsZnI35vLd4Qv6E925lTJzmlvoyaY2CryoKPgyuZe9BEMTrSus5ekvBN0iTJP+wQvjujgu+dgF0HuJyuAgzsgAcb6vl5uFI+y0zpfmjfipg+LRSxk4lugfIiU/fkvDkaBA88VtksAiAq/37H9mW4vLwEIsjIBprTH+DYzSxJKHtkDnUzFadc= X-Forefront-PRVS: 0904004ECB X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1229; 23:QzVS7Oo6JqwnO/xEuusvQWTwqgB3Ue/S2Qew4rh?= =?us-ascii?Q?3Q18G+g+w6q/glK5ZZneV3NRosmHsYPn+Z6JMpalNsc/t0MNFEqt5aZjAovE?= =?us-ascii?Q?bOEpfpHfkFzT39PERBVSs1/Zy1aR8TpLjpUp+D2cYKIEwdoLgMII2EXNwdlW?= =?us-ascii?Q?CzfQ8RfyDBelqViID+zLHiWsEtQKXqx74g4iqLaD5eHPl/pybLx86p9UD6jK?= =?us-ascii?Q?fQg2PjBCg/dvINwBPmmsn1vW/O996u4i0+dWEA+K43CPBJCkYgSh3HCUilIV?= =?us-ascii?Q?SpYxNr0hAIF3YOZ1wL8SnPApSfa5i95nyoYj0tqnxjVv+Lg4x7dVOpSRBLeX?= =?us-ascii?Q?BR4xU0V8ALHo/K3pqn5k+bO5mY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yrBlt3A=; 24:SPj7PHCLiza4YcI0O4xJz2h3ARCPwcMk2+ITebCIK/UkDatcMlojxch+y307upOp9rVPndFCC/s0o8IuVjJdwvO8KaoUNJYlhz7yRtwNifI= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2016 13:38:05.4204 (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: DM2PR0301MB1229 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 --- 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,