From patchwork Thu May 19 12:15:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 9127555 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A20206082F for ; Thu, 19 May 2016 13:02:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA0A2281A6 for ; Thu, 19 May 2016 12:16:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DEBDF281AA; Thu, 19 May 2016 12:16:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4CA16281A6 for ; Thu, 19 May 2016 12:16:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754388AbcESMQO (ORCPT ); Thu, 19 May 2016 08:16:14 -0400 Received: from mail-bn1bon0060.outbound.protection.outlook.com ([157.56.111.60]:30223 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754284AbcESMPf (ORCPT ); Thu, 19 May 2016 08:15:35 -0400 Received: from BN3PR0301CA0043.namprd03.prod.outlook.com (10.160.152.139) by CY1PR0301MB0604.namprd03.prod.outlook.com (10.160.142.23) with Microsoft SMTP Server (TLS) id 15.1.497.12; Thu, 19 May 2016 12:15:32 +0000 Received: from BN1AFFO11FD039.protection.gbl (2a01:111:f400:7c10::174) by BN3PR0301CA0043.outlook.office365.com (2a01:111:e400:401e::11) with Microsoft SMTP Server (TLS) id 15.1.501.7 via Frontend Transport; Thu, 19 May 2016 12:15:32 +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 BN1AFFO11FD039.mail.protection.outlook.com (10.58.52.243) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Thu, 19 May 2016 12:15:31 +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 u4JCFQeJ028425; Thu, 19 May 2016 05:15:30 -0700 From: Tudor Ambarus To: CC: , , Tudor Ambarus Subject: [PATCH v6 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Thu, 19 May 2016 15:15:17 +0300 Message-ID: <1463660118-19188-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1463660118-19188-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1463660118-19188-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131081337318933325; (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)(9170700003)(110136002)(47776003)(189998001)(36756003)(77096005)(33646002)(92566002)(4326007)(2906002)(87936001)(586003)(81166006)(5003940100001)(5008740100001)(50466002)(48376002)(11100500001)(2351001)(8676002)(106466001)(229853001)(8936002)(2950100001)(86362001)(1220700001)(76176999)(50986999)(85426001)(105606002)(50226002)(19580395003)(19580405001)(6806005)(104016004)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0604; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD039; 1:vLeOZffiF0nCL3RFHhtqWK7HI7oLPpkon6/ee8A8cZMwBkWvii5yhKdhvYigMGDw2UKa3e8fLSrut14KHhuY659cONSJVv1hhDNpiVasAYGcfnqATn8acENSz7PGmeaXJ9u+E5qwhMM941hsWG4qFeTdqzHdrf3y95BQbmXKgzmWyt5mOUkszDfbrjNwLTdBXNPtw7F4QtUrqIdTCFaOopBIN59AXhferFgf0j7BzHTs8p+tOW+k35MPPmBTP1Q67Ko0jBPll9cwA9idEBCIxlsgYq3LvAdv1Znp7t4sWo3Y6DoJ/jRVC1cBKfYmn78meRgJVtsNjbCnSj56l1JxWbQuw11GOT++259kifjngk49+kjjOjYNp2GYDQ4mnYY4pYzE+h4Mfq7a8nJgHkWU0Ba9k8V64U3zCKUPD3g2V/Uhb0PYzykwOyyj5PjYc07GujgL5Wb44T7XmMjzNkYOZA0O7+S2tu0NODWNBaa/82LZbzeP2Y0mGZrj385d0SVkJT8mO+YgURacSgzxeV5rtNrFgFzs1w7Aeh7PiylUWTkw2KamrGsTCdSM5JCmJku1juZODv1lFDrhXUxOem7CMT+HT2qIsWseReTq2syApkSTEjOwCMOYs64B7DdEihF+cdfL9AaoxWXs6zAUCbozF8lyrBPozzpsdP5F4OqCScY= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 82b6d9e1-f3a8-45c2-a1eb-08d37fdf4608 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0604; 2:fMkmiAmcYJwZUvYa9sW7MJ/g5qABNPXwMGX9Hd5w2khnmXjnrIRMdiyWtiSnRxGtBv7lc7Y3QghLyTMGSnk+71sju9K4rLV4dMjowAS60VkaWitb9jbRo/yYZrQXBzhntmVEWIv+Tsw9sRPSn+AqDSb9q0LLFzgO6TjJDiM5/OvusU8Y1QzcMRz073HnSed2; 3:hLtIJj9U+XSaJADnBKR+Z5z8FS3/vVVpHh+1uEs3ymKVgJTd56iVUD2WTuoT4+/Zr1x4aDIP1ZmAvpWe2uXG1M1MHJtbNYG3VHqGCSf5e6YrNNUl4SLnE7MyzeT5NiP6SYfspFEAXjGY7unoAR6naCb04nGzyXaXGqxYP0JUGrsXZtoBJu9g4reDmO0gbm6GpFSwILHpa9lKcPy7v2SNW8x5hsMnLl0R2STqMQRM7eQ=; 25:0beBR4evM8L4GXTo8T5934ajjw0pEz+txiqe+Xe9xkTWBlKQhQwyrgVTHGBTLyoXaOzMSICC50tohrjoxAUbk6FpV9OOjKXQQAlmldVzfZoFgwOA9m7j39vSwGwjPkdlM6Wb30c72JEYjr5Ag59SkhZDQj6VBfvPTHJ1tf+j6Mqp9KcME4/6PKTh2c7Q5lA7w/nlYUlD/0q1wUEByV4OWOl/jaqdeEaXN/pqW7tuX2zWe4XSNlYgb4ieLeeqMGV/c9tL2WP6FYx+m1T6KiupuvS5qkX7qm2Jo1UDew8EHXOAxLdRWZkbf56LrvBwqzwAJ4EGW36TD097J8tbpoHjUjYeiuixTSQMq6R/vPMUNlb98n9KLAWQAq2hTLE2bAHCKB4TuWXI3imnOnA+QEL7tl0oEOyQiJ0ZpxQuvJ0MInY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0604; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13017025)(5005006)(8121501046)(13024025)(13023025)(13018025)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB0604; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0604; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0604; 4:kMAb3jT9u26+hFvZU2iUECSU8TS6ilXcqFQPEGWZei2T/hpNINATWJAtEvhNi/H4rm2SJn73GVquJ+1Vm/VWRi/l7ZCZAdebVsOhDj1CD5T1z8R8Sr1lJ3hHSkotNov0/fI09piPq9cVLq1VkrWuLZwc5w9fDrbXRHTyCNzeGD7nVJC1J9WDGHk78dd5JK0h05uWD4oRNRJvouQw6TPY9YF5iyqTiV+zwefHhZLxdj1NTGTVHW1pyaCFuOlXM3/2ElbXxdyjT3m3OPoEEyIrNuU9oJ1LbQs+7XwzejaNUZne4tdIOtGl9MVsDmCbCx4EmSjEOIIjAtyC6Md/Mzt9DsStEE3liI3H6NQB0rJIlNHv8CO0lpP3TbzZ43uUQyvFal1JQaBCpHALiYp6phvk5fZM6DMFXDXIfmZDD6mmPWMcaRV3kr3WPHXhG1mr5pBckkrGsNwF3TQ1wq+x1Ss+0fhRCmyArlSjQ/jI8I2GWJQ= X-Forefront-PRVS: 094700CA91 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0604; 23:B8Dxwd2TCuQ4nL9/+hAM5d6TrIPzQ3LdotWNvtC?= =?us-ascii?Q?nz6UDmRxh0j7GqVnbscZFtd8stQzquxapBRi9h3jMZCOub/8KResUD0K9zFW?= =?us-ascii?Q?hGoBatkDa9HC5fUXnLZ3D3LohHBAWoBNt5GoW2lNxO1KE22i7/YHlL8rjGF5?= =?us-ascii?Q?VhPdULbtgQceFC7dGXALl85UFwRbdcarD0Zth6NCqJB9aeEl42NL4eSTNojC?= =?us-ascii?Q?Ov0znI+2lqC04XI3AOfGuR9Wx+awyYc6Nsxyu9WrY23RRbj4tcOPkDgs16cw?= =?us-ascii?Q?YMXFve+gzb2BFtCTZO92zh/VpDmVZELX+ZWznsCiXtXIoo4mrEami9Q814XD?= =?us-ascii?Q?Vh92/zXzsCrwQdmiPdAd8uy8ZLTC7h3OFCoMne7jxguUAk5u/YXM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RImm4xO9AusAk7SeqKzZKU6WeSkz+FnIMPqg9fJEnXOODL61QCDodUbBnow2DMfkoP7TTA7Bbu45pp4=; 24:kSMr6UprScDeNojKjlGxHe8pYhQ67xVgC/zKSNQNCtgC3wyyoQKQ70/c+BoEApSRiTGbfgpB5NuP26W+ZaFNVbnzK+w6yo3nNnJMk0mhMCk=; 7:DNtj883Jafh0ZZmHTWgvsScfdjFU6MTi6kX2kzpMvzYt7y2sptxLVHk2SamCP/ciPtvhLOgAC0b2bycglvHCU6xlbm2KLFXLr/jki/S21a1CfGIbsD79XjVBQdA6qiK0nxip4iy9AMHOq2fa5FOpysVZH0btZiag1SSo4eQVOLKCYdB+tVAjNfWeTB0EDNyL SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2016 12:15:31.7061 (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: CY1PR0301MB0604 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.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,