From patchwork Fri Apr 29 13:10:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8982081 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 75FFCBF29F for ; Fri, 29 Apr 2016 13:10:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A06DE201C0 for ; Fri, 29 Apr 2016 13:10:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5387F200E5 for ; Fri, 29 Apr 2016 13:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753487AbcD2NKf (ORCPT ); Fri, 29 Apr 2016 09:10:35 -0400 Received: from mail-bn1bon0057.outbound.protection.outlook.com ([157.56.111.57]:56468 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753275AbcD2NKd (ORCPT ); Fri, 29 Apr 2016 09:10:33 -0400 Received: from BN3PR0301CA0045.namprd03.prod.outlook.com (10.160.152.141) by DM2PR0301MB0718.namprd03.prod.outlook.com (10.160.97.139) with Microsoft SMTP Server (TLS) id 15.1.466.19; Fri, 29 Apr 2016 13:10:30 +0000 Received: from BY2FFO11FD028.protection.gbl (2a01:111:f400:7c0c::185) by BN3PR0301CA0045.outlook.office365.com (2a01:111:e400:401e::13) with Microsoft SMTP Server (TLS) id 15.1.485.9 via Frontend Transport; Fri, 29 Apr 2016 13:10:30 +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 BY2FFO11FD028.mail.protection.outlook.com (10.1.15.217) with Microsoft SMTP Server (TLS) id 15.1.477.4 via Frontend Transport; Fri, 29 Apr 2016 13:10:29 +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 u3TDAOkf002306; Fri, 29 Apr 2016 06:10:27 -0700 From: Tudor Ambarus To: CC: , Tudor Ambarus Subject: [PATCH v4 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Fri, 29 Apr 2016 16:10:20 +0300 Message-ID: <1461935421-31363-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1461935421-31363-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1461935421-31363-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131064090294396939; (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)(11100500001)(5003940100001)(50466002)(48376002)(47776003)(33646002)(50226002)(85426001)(81166005)(189998001)(1096002)(87936001)(1220700001)(4326007)(92566002)(586003)(105606002)(6806005)(104016004)(50986999)(5008740100001)(86362001)(76176999)(2950100001)(229853001)(2351001)(36756003)(110136002)(2906002)(19580405001)(77096005)(19580395003)(106466001)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0718; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD028; 1:PPoDU3wn0t9wZW6RP5usIHUt/jLFw0vG7vwzkfdSW6lam3l3s7VMNFZzgd/rPuaJif8s8xu3/QOy3z5p6oSNzVDrmhNFKsBHHwT8F33RjaBEc+/8nORlrXeeY9e66SLy03GIkoeoUsk/sOTAC0YHXfXhI+tf9j3aZXjzukf0AtZGHIIt8kaMx/NYWejJdgc6uS8QrVRlkOgCtA9kL2H7Bob0AGJNkvyS5C+HAh+HIV6N/b1GmCOrTTOsiD/neeE9H2us62O80J8zc7AoYOYedv4EaojrcXUKO/Hcn0Cr3YYFwQVCQvmLBRZRiTvHAwjxe6m3h8POeKmPJcszcK8tsVHX9rnz8k4WnpbJvCXAenlv87KAKTjH5+tQ07OpH5Ocf1UhvwV84Ce1gSnnJ0xVkp51K/ORZH/DEBr/KxgW5/2RPm9jWtpDotszIW8Gbi+mHJXiDa0fnR1ghZ4bW5fJM2SYSGleF7hj54dA8ltjKmc5qTvufs4bBlVk07nDNImUcQbSKeRKYi+lU7MPBS9yZBOCAPetqVVHJbnWWmbRASn6h3ISG6L05Lxeab9HFrnEKa5ra77Qd3injq8KMF4scP9R1vr+Sv9rXAET2ZCumcEWs0dtvvu1t1N0i5OKW0oBgqhmGW9x+lMW2Nt+38EtaxyA4v27+yehLInFRZI8zCHD9yzq9jVbhrekU75wccNmBNUCrj7XMvcQKrUwN8Qadw== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: e480e8f4-f677-4794-46aa-08d3702fa343 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0718; 2:79DEkBPdrc2++si9MSkhZClIYlU8y9AatfeN7UWW+trPjtR97LC8xvP+q3dtN8kquo9WJIpR+IJm0fiYyY2epTrr2N6AkFx8vVPwnifFRoqf3dYVofwDw2CwMAV4zDCFlTQPDHROlkzX/7TT2wpnJ8W11j2nWg6waHiiUvSaAtSMlY0xf0fyTyXIeDDNKQ2N; 3:lIHT+KVIzXjuiIHqEPfklBO4bGW7FqMHc0OVw+LkvPstFgL8FMpRxWIiqP8Wjt2iC3wi9urRD9QFgYSMNP7eLUUmMh5fdSES9Wzqo/OJ7e7ZX0vs+1Yj+MyQm3Lch/thxNH0rOibkTjdrTrpvqdwbp5CvxmuRmrJLpvT1Ntqgvfnn9au9RGruHWODxT8mjybH7R4Uy2Q9Xbou2aOWfxO//gYKpl6Ioxv3vqGL1SpBJ8= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0301MB0718; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0718; 25:vCdLnoIQ1Zcolqq+w6jvOwFCI4F53IeEVKwepQQfdBhvuRq4b5vqo61tOX4hQdzninKoI9g601V41FlRjK5d+F3mFsy4kAw2oVTgGhrXisTbhXpSWDpPy+WlfE5Wrq0sMiJyqqcNTAMcVro1keDrsLYbU1h+xGsSrA1mC18iVmKKiQ52r1td1gQzAVwhKpP2iOeHo6opVL1Npghz3tmCUjLXtKG4kOqxe1lGeEw61hSc6T9C7ru93LojVrMURLpI+OTYB+0QuK1mRjLqwj9HGAuxSzNa0Nc4Td9X58j/u5ahbnrxey8+99l9vLSoDRTravm31eMddBBJj8yWxInY++NdDQGOHuOY8NoYiRVZ2bZbcRNB7aCLtOFEvPhYd2MjAImvMPikqMQ46qj4JjggqpamZ5LbOE6a7hsCDGvQcxjhRGTCYNSQYAJbXdvaimfaPl8ryqb+nLIEFmmxeodn5yYYN9JqwZE3G6ploAOXBzTOsFfNSEuFo/WywUo2Ntu2QTd1rN8dgnkw3DxC7KdENNApjn2ah+QZaGRS/LO44SheiCrsjefy3oi3AmEG/K+7z5KRc2/oH8jurwi5a93UuI35+KV8HUYDH7huds8FpjxSKJRAJkDTQ20KTq1sQu9CNr3HfvToZ5CzqyEPxw1mqQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13015025)(13018025)(13017025)(8121501046)(5005006)(13024025)(3002001)(10201501046)(6055026); SRVR:DM2PR0301MB0718; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0718; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0718; 4:H+yD1GmFYTWxsFJ79BUIlQeKZFf2aFYimx5o/St0i9phq5/3jf9tEFmln/9IoYpGNUCYMrENLiBoOplQkDq4wdncqfbsSqBKHC1DC7Cyw7spQN4LTv90x7XT92PTjf4oDlWaE3uvAwvu3U1bhIXNti8LNJ5H5d7srNfWeOois+XnDZ5JzqFpzoI+pFnQVCDDhkpKMIRKLNgCZYWItf9Re9pV3ugoWnfn4aplLVinKiH7e0MapBGDWOIWSkrn6h8yB/cxZ7CFvbitSc1KgviXuHpRMridWUX/Ngin8CsUt1vDzr3RBac2fnRk2kucjgOJWyOp90MSM4CSyryKvubeP5JuK2oBSN/qzEdKSeZ7KUtz82WCYLi7KJTZ0/kc1DA3cEsASaStWKM6R2EnkI84CHGaYZKnXeYxAWwyjDLQ+mVoTEjPVrKRfcmbdWRO180NKumoD7mye19xZgWzutxmwmLXE7Rc7BwbpOkvZZPHe3U= X-Forefront-PRVS: 0927AA37C7 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0718; 23:AjyLak0WzawHXv7GZnG+9vH25rnTdHqX7tsgmMB?= =?us-ascii?Q?flCkvkKJcfQMXuEiT5FYZmFyNRqK6la6SCyUSHwMX6T5sPWwtuTNmOcXG08y?= =?us-ascii?Q?2fYjQ3drkx13xQXS4vyQWpEa86Hv9UFlTuE4Dc6z2z2oHwmX8YIPGof+pFjQ?= =?us-ascii?Q?NKzGbyiMiS49aFqUadjUoa3WqlngcJBg2YO4TPMIBKfyh1gsviPh63hXZKyv?= =?us-ascii?Q?dFU/E0Vvh83HQHde0oiOitIa9vbXwlzQFYlJgu/GssfJzee+Mg9s0hoiz3E3?= =?us-ascii?Q?DPog49wxk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LMFXiuYr1CyJ/BBIy85wT5l6074p+tmC+bHkCCoJfvyUwI4Jyi/hW/FrvFsMpzDCmJUJilaEo5g/gjcxrmLH88cV8DgVWlIspq9oS4m2p4L7ZaKZTAZNOVS9NStUiPI/LC/ryqeGXCjMKpEJV8ja93TVcUAnIdDyXrlGrhoXhvuG4WfEHELtO0rG11xw==; 24:HuxUGy8Ct/Op3Sdb9XIlDMOZ/DHdQdJApGLihD1rLlTuj6lPBYqwr+f5RYe565gWHSkKAD0zPgnIc7gpd45NFFXPwv7Yk8ypXWTJ2GdJIM0=; 7:yD3kgJSIGjBozIr3OSP310RoTKFyf2Xs2/ZMFerWAGYrheunKDQ1lHyL88D7CcosHCpRx846BklUzeNMlUrR6xmw7iQ3TB8WkJ/aCJWmUmFDSqBl0xWGRVK92RgVlyzaKaWqlCoAJwfqctbvPypV3bz6BLywWhVyHI6OHGzOsADsqTsMm9h73eEQJQi86LYNSMlRalNfV2URK1O5wX9va++1z5aeBslDjsFISF8qbLc= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2016 13:10:29.2368 (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: DM2PR0301MB0718 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,