From patchwork Thu May 12 15:06: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: 9082691 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 08A299F1C3 for ; Thu, 12 May 2016 15:06:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 287392024F for ; Thu, 12 May 2016 15:06:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E6132024D for ; Thu, 12 May 2016 15:06:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752691AbcELPGc (ORCPT ); Thu, 12 May 2016 11:06:32 -0400 Received: from mail-bl2on0069.outbound.protection.outlook.com ([65.55.169.69]:8112 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752648AbcELPGa (ORCPT ); Thu, 12 May 2016 11:06:30 -0400 Received: from BLUPR0301CA0030.namprd03.prod.outlook.com (10.162.113.168) by BY2PR03MB473.namprd03.prod.outlook.com (10.141.141.143) with Microsoft SMTP Server (TLS) id 15.1.492.11; Thu, 12 May 2016 15:06:27 +0000 Received: from BN1BFFO11FD020.protection.gbl (2a01:111:f400:7c10::1:183) by BLUPR0301CA0030.outlook.office365.com (2a01:111:e400:5259::40) with Microsoft SMTP Server (TLS) id 15.1.492.11 via Frontend Transport; Thu, 12 May 2016 15:06:25 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD020.mail.protection.outlook.com (10.58.144.83) with Microsoft SMTP Server (TLS) id 15.1.492.8 via Frontend Transport; Thu, 12 May 2016 15:06:25 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u4CF6Kn1007042; Thu, 12 May 2016 08:06:23 -0700 From: Tudor Ambarus To: CC: , Tudor Ambarus Subject: [PATCH 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Thu, 12 May 2016 18:06:17 +0300 Message-ID: <1463065578-14017-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1463065578-14017-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1463065578-14017-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131075391857657770; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(586003)(105606002)(8936002)(189998001)(110136002)(1220700001)(19580395003)(86362001)(50986999)(50226002)(229853001)(104016004)(48376002)(2351001)(6806005)(2950100001)(19580405001)(11100500001)(47776003)(76176999)(50466002)(85426001)(87936001)(5008740100001)(77096005)(106466001)(92566002)(33646002)(81166006)(36756003)(5003940100001)(2906002)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB473; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD020; 1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nWNbsvWB/JcSNF+95EOhfhXeOhjEwOZuDFz2iXaGxhK8RgmdepTNRL7UsvSTiiAPCUnepYtUkCp8z0hxJn4TYQLQCdaarbC3fBhoFoXIleLG7NQtwjKhl1lzM1VX68FE7CTHZzGeD7nfY/JqJ2nV418EHJD+QmvbPaiZBYArX9qQ9mIXLF8csNcNss= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB473; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB473; 25:rY5Tu/t7vryHsrSLO7T9TBdITV2aK2Oa34CSFQV4ZTKsBgHrqR6bcsEfmP9gWo8/Q9LPxo0PPd1O4efhRpZSpkJsJYuNrOCGfRTbxNH7UPvjvOW6fiZgRccghjShC6D7T/WzsXJZPcKTD7ZE+wuh9QlcXnJvBgohf0hPokhDcGReGnq+EuCgCxCFwxagEuRP9OKcaS9IRC+onc77kjcx/EO9umyMfAQcl7NPVNbZdGiU9lWD8Twf0/ACkP3b1xxjtrKLf7FcfuJKwtk6CJrXLMfpDaZqZfUiKoDRADWX3DC7sJAYmsiVk8SVDxghBeEoNLSE4ipKgXAu/gZpid+neDePvEogl2Wdo6luqPK9xvJDmSxac81ohfepvhbXXsDUisLETvnzRysrPtsL8EcDUfy/AOdLIVmDrkConHDmvW9Oo1EgP0xz8Z7/PXQmklbZcb76VKztz4caxIQdOXUszIM13eOifa0C2Eku2o7DF4JfnSm9gJX4HZ8yxbvHDA2JOrpuwbzhh9/V27LqC6ULChzh4RNaHHeUGQLmFeOVLcPd0wIXdeNeJUZIMvNlGk8l3wEZvxc/BO5NMdC8a1H6WvOoiWc4TP8eiyjxBdiZ5QvU4QioHai09ABcQBv2aoAkdnXbFdsY7klzt2AEEX4yyd2KR/aU65qAfmY0HBuhphSE/gDpFBn4NXNGDQ1Uxbtsis0sCC+aKHig7/f9SBpIyQgOCCDkA3tnIokGBmjEuJw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13015025)(13024025)(13023025)(13017025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:BY2PR03MB473; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB473; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB473; 4:yhTY0/lpOLBrJ5y2lCmsTqej8hNfPGW2WN6X9C8YrE2BA3aWbJV6kOQegM9aMPRbE+KjS2Joy/fVEO446wEujvzR4JIrG4TMb6zSySqfjg2Txyki4ho8sH+0FCg9eQ9lDXFHsMdmGJRHoZYn/sgY+KCvkrZN9XX7Rtyq4J6A9yeaO565opHSZ1yn9V/Dp1MqDgd/28u1euh4dmhNejToQHyJQrvGsX5o24JHGjjDo5JMxNMXwwGWxhe8IZdXTkXpugE4NZ8DuNfsBdWxXwvTsLLI+4mQ1sBvC3AOWUBa9pSV+84ubithwgyPQgmclaHLFXPh3phQaedEI7MI77AkbYY+NC2YIbjIL+rj8hdqMK2mbyncjEqVkrq7hgntEoFJXhBaLn/HHrhr4G5e1ZzdMtFC4S9wLg/jWEh12Brx0t8Px0CaMzaNoR1seA01ulleT6zoPfecoG+x9kmEHYAIdHlWVxhcfHl1IJfPkM6NC0w= X-Forefront-PRVS: 0940A19703 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB473; 23:FPjOCsP1+QU2bams60INnju5JTFqmi+B+Bm9Wt3T7q?= =?us-ascii?Q?bUR9bK0646Tim6pcCR0CXafWnJ6dE+9dQMxcJC9MX4Eph/GLIMBol1Rp/jOV?= =?us-ascii?Q?Lo2Epd34YMdegwkq3ma9H3xjN6l0TBBQirpyQt1JMPIGnZ63YCCUo//kzsdf?= =?us-ascii?Q?Qn/84xHA4Q9SwpZBFrPmXfIGXKVclPYZ94yC7H03lsZWCzB6m8z/gf+n+NM+?= =?us-ascii?Q?EgdgbGwlIjUE2xQM9yAv/uEWfu1S3lHhl4hzfhlqCuxj1iYXff/mhZNxRf3R?= =?us-ascii?Q?NV8ogkga3HAoPEcfFWIIl4tfcwvFJI19F3GWr+vw07+2IKjKgRJcT930T6G+?= =?us-ascii?Q?Bjb/RvwbOGXUSDo7+zKsNSk+d+UJQ1HBmwtGrCSge87g11hN39yR1ja3KzXn?= =?us-ascii?Q?kRpI0Cg3b7UcIqIj10mhHNUqdt7zDZHSAIGKBohF4ypgDisEt6Ng0J8uBVjA?= =?us-ascii?Q?5CDh0cLaRIXKH4dTPA9nTvqQFW0DLdktmndREmC4FI9PzQBxLkT38jwqjYuC?= =?us-ascii?Q?7KlHIA8bDLvYWPI5ZWodTrKt7OCzMCXmm2PcTZNStliG74nHwhPi8PKf7i0W?= =?us-ascii?Q?veK5VCB+wWpuuqaNxBWH0j163d1aU+bJNOMbLlcW2NVaJgrE9eiVnS01YwCR?= =?us-ascii?Q?THJ5vHBJfPFmsEdexhdk/zGPRk9r8Sz0Xs/bheYnuHGcg96ALHrrcm/968qf?= =?us-ascii?Q?oNSJTUIX1bZClY9vgml2v1K0ggpvSPB1H46Y0yg6bK57X+mP6hfNlFXwwsko?= =?us-ascii?Q?WmDkO/IR8hcSRP1txoVKRG7C+oe5dvzxCfHjNRvcAYYGVSHYtnemSiVcleBJ?= =?us-ascii?Q?WRPVl/UuJleF7ASVAFoSiofJwAf2OnNDOaOpbNy2Irnlq5G6RaR2pofUkVcu?= =?us-ascii?Q?zWSapfEYwOaNf8XE0VqnOgpTldeMTZeOTd3aN2BGU7haOb4gylDdv38fshsU?= =?us-ascii?Q?U/U92aZQsCAx7blnZWE+RFzadRDJRAw1U3R309qKqbWF9IjuQ7DEtGy1AzsT?= =?us-ascii?Q?Bt7UZTor9bc6Gjre6KHLcLhehnqjtzn6F1geOCwqSIBJB+YlAfzNTuH/Vv78?= =?us-ascii?Q?XLfFDTrFrpqEaFsBPjxma5GL/TwEqGWWphHQxh37b5HRJzjw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB473; 5:5nIVV5mxgjYFcIRyWk2vHz0bK9aLzZcfBPDklXPXnQjR+CVkqPtApF/zcoZBGUF0SAoey7ZMaKR3s3V31BOAnoyVg0o/nDRIkk48SfurfJXzMX4cM5lIHWlkSc7RdukPYrXH5u/5ncfM8KFwYpNuTVrjXbJbfVsEfTiCWS+bV6M=; 24:2NvPs7t0QfqNWDe1uetXz+ldI/DjXHjpY/j9G83EgvOUwoNG0XitOYO7+aOQnTy3NferKlp1yHcHYUBjdXbsLRZ0IRR/HfRnzn3ocXbcn90=; 7:z+RoOMVqPxrP41dCYHjbB4YmAcGd1GIVXMMLjwxZsN0xwW5NRjCCpKXZoF0CfYu6yzmo2D29/ZnXB/D8shr0ACyjCoFpArsqWw1Ih8lGEJp4DiBGQEDRYg2OBk8Azf6NvHH+zsRgJAqQdkfjEY0rCXWzEq8T90qCpKKqzyPzhIuzqu6RoIlIidjymThRcwCe SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2016 15:06:25.5317 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB473 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.3 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,