From patchwork Fri Mar 18 18:32:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8623121 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 6ED7CC0553 for ; Fri, 18 Mar 2016 18:32:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8D86020225 for ; Fri, 18 Mar 2016 18:32:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D310520373 for ; Fri, 18 Mar 2016 18:32:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754009AbcCRScd (ORCPT ); Fri, 18 Mar 2016 14:32:33 -0400 Received: from mail-bl2on0069.outbound.protection.outlook.com ([65.55.169.69]:53003 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753610AbcCRScc (ORCPT ); Fri, 18 Mar 2016 14:32:32 -0400 Received: from BY2PR03CA006.namprd03.prod.outlook.com (10.255.93.23) by SN1PR0301MB1597.namprd03.prod.outlook.com (10.162.130.19) with Microsoft SMTP Server (TLS) id 15.1.443.7; Fri, 18 Mar 2016 18:32:29 +0000 Received: from BN1BFFO11FD054.protection.gbl (10.255.93.4) by BY2PR03CA006.outlook.office365.com (10.255.93.23) with Microsoft SMTP Server (TLS) id 15.1.434.16 via Frontend Transport; Fri, 18 Mar 2016 18:32:29 +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 BN1BFFO11FD054.mail.protection.outlook.com (10.58.145.9) with Microsoft SMTP Server (TLS) id 15.1.434.11 via Frontend Transport; Fri, 18 Mar 2016 18:32:28 +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 u2IIWAmS015418; Fri, 18 Mar 2016 11:32:26 -0700 From: Tudor Ambarus To: , CC: , , , Tudor Ambarus Subject: [PATCH 09/10] crypto: scatterwalk - export scatterwalk_pagedone Date: Fri, 18 Mar 2016 20:32:06 +0200 Message-ID: <1458325927-14737-9-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1458325927-14737-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1458325927-14737-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131027995490231426; (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)(1109001)(1110001)(339900001)(199003)(189002)(4326007)(47776003)(33646002)(87936001)(76176999)(50986999)(2906002)(5001770100001)(50226001)(5008740100001)(6806005)(19580395003)(189998001)(105606002)(106466001)(36756003)(85426001)(92566002)(19580405001)(5003940100001)(104016004)(586003)(77096005)(11100500001)(86362001)(2950100001)(229853001)(48376002)(50466002)(81166005)(1220700001)(1096002)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1597; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD054; 1:9LMZwWn7pig0DEYCC8yO6xmg8T5MfIPSTmRzl1JztyF2UV3klysvCHwvZkRnHs/rmgkCC9BshndUgPGCJFf5JkC/Q3kHl6iYdirs2h/DM/T3w9qQUviWlAHqkqJiBxMsj7VSwwr2WOoQLr5ucIHYMDvWU7CSLC7iJBwLoeBusrBRTTN1WgIXMl7AWQtPY8ciACsorZT54uG8vNq5v0Vb9km09cu71LzBE4kadtrmaW7cXy55tbKaUmac9aknHU4aWuWlTjrujyPM4KPXLBrmyP5tXs4fP1CKwd1ubZYJKm65Y0V7i9sIJ8C73t09D5/atLiSJNt7YGt5BSjrOVLECp8ntfQNGzj2JGdfReu8Rrwe2e0JTIaWfFZSUcx2IG2oh4BYGCdssxGHS5AaQuzwKTtBU5iIOOrEYpRfoCHhOnv1No4Qy1FqjJMmbDRLDZvrANWsNUc5ykpAKVkYTSd+AQdUkrY+ymGBiFpmmfSDPXUFMCg4wqMJRYCWjYyePCk90/XjSi2Da4gDm3jL+k/6JXDOis4kbu18vXAFpezAW3eMWIR9CmGMOSVYtbS0TKDzfpbLHaDIK04rpDd0wfyAL2KxqHHpZ4FGZWRsA/Pf5TpgG3WGkynTExy85zv9EqBqZqM3AeNdVOUzKskQSOTu2HwCYIdHUkc2/krwz1iP6hw= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 0c4b6923-1848-4484-4323-08d34f5ba948 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1597; 2:uFJg+g/EhtA3Y1EfukEl/EOacUHDsYuaCLxT+7i5BqvIbMDgLo5g+MS2SHB0yvL6LrTYwukXlea3XidV8PK/0FGKi/Y4MX2/mleUPt95byuFnGf10T6qqSO2PXtJDKj0kyX3KhOHL5a9Gs+yEc9XG7ndVhqLnA5fx274tYsdDhbGGWNmdktVw7qxYBS6lB6w; 3:/yXaZhV4648SPOXKuimzcJWqlEKftoT/EnOx1QukeZtY0MKUa7XWteKOMEUapAIIzqfy8vDWnT/rC9OpA175CnXDLh+xn936944ASLhDHaqXJJQkcVjfLmfYN7aoaNtBqxEdsiWFUkFSlfde85EGit1uxiy3HhKW9x5SaooI5qlFBdJqfatUf2RLAwXaOl8jJz8h0eLQl0H7n2Vwz0nZX853Q9sxLyXQxn+eFEeyEVk=; 25:LWfCfvLugO4SqfbEGvZQOEYr0Nh9wUJIc2e5g4jJ71Ib+ULgdnDgrSfxez3PnAJt8LpqpJ63HS6p5RXvIHHtyELePkspb64zx/PVdydE2jJcruj/4yad6n80HBUUDwvUZEK8MzqkgpaGLGZOjpN/7bxHRg/lipUkSGovbx/f0EBxzrYRZ6LoxuL7J6x/JCRwyhZ/cMwmF67r2RW79g6KWFagxjaU5f1jFg+1hUBd1svrFmDEWI1PCuXtE7/S9UM9zonHPeMpo5zpFifQmrZhZYM508FxL+1BzEPHhKjghSxZqDsXKLpjNGR6igIf6bDk0vaSK49vky9jXC9MxiOU+UNXkBWeIwVw4TDjNsCA+LcLVFFZi5Ke8fZQjwGxMFcKYAXGQSYom58YA7POGvaxYdmoIhdbm3X/j8LCmjPr6rU4B+Ltwn7JDw0Am9Lq8ZgdCLoyR1f09u/k77M/KDyL65Yqmj/okmTr+lG3+7F5Xcj9PSMLs6CrB G4RRvAgJBeNfOA43bw3WCzsnqke14jHdA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1597; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13024025)(5005006)(13018025)(13017025)(13023025)(8121501046)(13015025)(3002001)(10201501046); SRVR:SN1PR0301MB1597; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB1597; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1597; 4:OMxOpR5++6pFnlDFFgQcnYkZaeAH0gpWygj7tQPchpFjkJiT1cHthFW2ZYHjGYh30ySPE9ppGDDctzexTH/4oIiHzyyheYgtW89Nm2ZoxxFQUgeP75tp+uEIPoO2W8irHEwatW4kZ2b3KiVTAV7sV9Q31I8w7LHAoihm9/Xqxb1UllzFyVt9RWpH6hiwrJhXxOkDzOO35gLhqmpYPS2JKR0fYIE1hc1ff+JxXMP74myjdnSzwNLZpqfwUa0hNTm+WXXEF8FUQ+2DcKQOstVW0wzPPtfQcTpX+DIVLwjcRM4EQQExKbbjN9op72z4rg48pT79U7J5gtBVw7OJOKJUd/c+hOYIMnVKALm29XNPQxpEMyHvizFkq2btlnD5qLw4O/sWxr8zSoRWlenOWJhKeeZhGkK8EB5c5jAacUqYCaR/DxS9lqmAk419QbXJjPME+5H/qxoU/JxiPmsXek7qBQ== X-Forefront-PRVS: 088552DE73 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1597; 23:YR11rj32I4SUN/n+Nylk5bUAtDgvYSkexPmS6At?= =?us-ascii?Q?/e6MLE107nobA4+afIdiiBABojONWm6KKsFb3sBGTk2yP11Ba0cGa2upuBsr?= =?us-ascii?Q?+RbkLFK/zq1GdYbeoXovYXNmARxGIkcnpS6kYcvOh51readWdOiW6FJKjXSp?= =?us-ascii?Q?V4dLYZM9uBQaxlK6qyOHwQO80wOjmZt/T3y407tA74rI6MO4gu7zoREFo2bq?= =?us-ascii?Q?X25JCg5plybwI7pwxIGvtBYHz3LiFNjCYPrA/+agPjgpKGDGfHyRlRI3GLNC?= =?us-ascii?Q?/W7AquYKOI2iUs/+1BlGgPw+IpAZQi0jBbPmywwBePnxJ4/LWHdzJn18+qyT?= =?us-ascii?Q?MRE7rqeTwmRLHvRBnXru6NdCwx2U0AMa2UXiujlgN6CDO13X8I/Bu/HqREfz?= =?us-ascii?Q?j4VuGB7qX5CukNDY2wCAa4tfsrQAnSG8LYllsgCuV2MTTEBucCRGaL+ofNkQ?= =?us-ascii?Q?4zM87CplILBB8N8TBQTm5xcvVTPV3x6fnnHcaL7/WKx5eOK2AtZWg9EkaUpq?= =?us-ascii?Q?u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-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2016 18:32:28.7735 (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: SN1PR0301MB1597 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, 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,