From patchwork Mon Feb 22 09:16:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 8373871 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 19F6DC0553 for ; Mon, 22 Feb 2016 09:32:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FD172034B for ; Mon, 22 Feb 2016 09:32:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3565A202C8 for ; Mon, 22 Feb 2016 09:32:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751103AbcBVJcb (ORCPT ); Mon, 22 Feb 2016 04:32:31 -0500 Received: from mail-bn1bon0060.outbound.protection.outlook.com ([157.56.111.60]:31744 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753896AbcBVJcL (ORCPT ); Mon, 22 Feb 2016 04:32:11 -0500 Received: from CH1PR03CA005.namprd03.prod.outlook.com (10.255.156.150) by BY2PR03MB314.namprd03.prod.outlook.com (10.141.139.19) with Microsoft SMTP Server (TLS) id 15.1.409.15; Mon, 22 Feb 2016 09:16:45 +0000 Received: from BY2FFO11FD011.protection.gbl (10.255.156.132) by CH1PR03CA005.outlook.office365.com (10.255.156.150) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Mon, 22 Feb 2016 09:16:45 +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 BY2FFO11FD011.mail.protection.outlook.com (10.1.14.129) with Microsoft SMTP Server (TLS) id 15.1.422.5 via Frontend Transport; Mon, 22 Feb 2016 09:16:44 +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 u1M9GZXY015987; Mon, 22 Feb 2016 02:16:42 -0700 From: Tudor Ambarus To: CC: , , , , Tudor Ambarus Subject: [PATCH 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Mon, 22 Feb 2016 11:16:16 +0200 Message-ID: <1456132577-332-2-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1456132577-332-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1456132577-332-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131006062048324534; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD011; 1:cO6icY4kG5PTlD8fwhCYwi71Ag+3bUv1BJ0hSNUKPWluwT7ZTJFo3ml4Cq3+fawOxUnDN3BtUYJ2cJZmwy40cDxl/LH6IbTNd1x6EN4p4jo5+g/5KYqJChbObyKjhqUm6nzMTDWNhc81nFXCbYwuik3KQh0aPc/N4SLg5u/ZmsbzWP+pyLdDA7sowdDmZ6nzvfN1AdVTZ5fjJKj9MgzY2GjL0a/324s4PyyA9zy0wNkmR7xtguL7V9PWo0W9fh+RaSoPEW6gg5/VhrSd5/32VrLCGW1+P/5rqLWQ9BGlqPwPF1r2SCVQpFNk3F1BOhDiyUnwODQRy9dnoYYmSlmUbyXwTDxeH6QB1/+HTw7asg5WYEavrHoKeu3dF/4ChkBhgtRSftnl6sU4ch2Z5YhZBqfqKgElKK/UWCpyiSzNauoZjmNZuS98fdcFv0jiTAGPb7LHfIgHo9A/N3dK0YpraXnIm6JpeptF1saCOlvz9LlEtdIQkXcHvTyT1QRufZMkum5Pdg5RaYZzxn2rJbN/HCqKgWfleDDDAZx2XFEuQopklTQifWqryr0/sGdo6uxmmQ6GShlpaNagUd2G6G0MMw== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(33646002)(110136002)(85426001)(76176999)(5001960100002)(50986999)(2950100001)(105606002)(77096005)(86362001)(36756003)(50466002)(229853001)(2351001)(106466001)(50226001)(87936001)(2906002)(4326007)(92566002)(104016004)(5008740100001)(11100500001)(6806005)(586003)(48376002)(1096002)(1220700001)(47776003)(189998001)(19580405001)(19580395003)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB314; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: d66f51f1-343a-49b4-ca55-08d33b68e244 X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB314; 2:u3zEC8xNjFbdV22LEbXMpOPcN74pfwobC0UWxPU2ClTCIZ2Cl3EwCAvJBgx8T+iJNxXi1qVYrenP4RedO8h4+0Im27aG8rYRFenl1c2keLyccwtTyUyzgchm9PNxsAQfjMndwKLWwG8sjtrkq4jyULGkdkLo8yIikd/m+7dvhdmk/s7bQ+OJKQAc3c43bsqK; 3:5/2su+lLszv8zQC42x1IEL6UtF1iw9iF4zIf84mNSxGrhkBafLJy4/gDFFnR5/UtUM1kaBunBKu2FnkLn8HydKV7q85eVOKqax6OG47j8FMIWdUWu600EdhePvt+Jq8I4wVuxeAiSbY1HEJg6TjFA0E4OC5CZMwArCr3HkupT8hl2yL1BMgD7tYbF6AMjG8na69tHAmer6SiV/gIZzWDHx0q4Wz0JzaxgDMV7vspje8=; 25:1z2Adune44kpe1zbi1lATg/i9/1ZixjbgLfKi8R+V5ydK5kXhz+k1WDcmhp/NMAXCWKxbl7KefOZnhtkT8yU/clAPpeITQqWUHjuFY/8wlMUC3zKzjJlSBYtWEMawFxy7hYRNbgnbNl4D62+wocEMbbPcxQaCx0NQPjkmmJKBCMv6Fy2uDJNUSnWLgoZ7+AD39HoTEZaTBzswbXKAW1SiOwl+nmAqyk9mHeafjsCCCW8pZoZXScyTzvS6Y8H9CfrsoQVwsohx5tiQ5ju45ZiZnNDvUTAZmCY7pltXwb6qNQLqRm6ZcQ1eSZbxAhsGU8rHwPu5YOoiKnz/1oYqGfe+kuW6KnzlE/ieW0Pnc/mtZU= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB314; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13015025)(13023025)(13024025)(13017025)(13018025)(5005006)(10201501046)(3002001); SRVR:BY2PR03MB314; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB314; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB314; 4:Zjr8fowZmMqloXXgInd+5/FNYr3BSHsLrr0hitA8szfm+iNQPSowLiX9pHgGV2UFmKn7FUr+SKob9n9ASO3TF8nvn+TRvCRxAeSJZIHI3/YHaokwYR7jO76CEgTx3YTd3q2x4NrnTab9KVV/RiSC9/IhggRSS6vSv936XNLXEjdw+ZKOB5/KSjKck6t45oT75jhIr7j0V2ySVR/dWiAUD/NSjaGS4J3eTERqxRUY/2Yf8r6RpM5ZxZ/36S0K0pC9caBihyHMBFQJFRJyyhyPWJv3Q5yhCumw9j1FAJS2DBB0pGuxxAxpvhCCRAXdSMMj1sR2BOf43Y08H16LTiSDH3qgNJ1XeAxd1MsVmdwnPKU03zZ5pkCNTvzztMmkfWxHW59qq05dZ0eab8N/LXfYWmJk4cDFNU3cwT40m4SyvNDxlzOzn3W5YvF/KNedymaTjGzoCHehhyPHVSCx9AjZRVvD8EqXySNsFpCNwTDCN69KASnrCev/pIj0S2W3ASYF X-Forefront-PRVS: 0860FE717F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB314; 23:Pgp7RAzXakdp24vo9DzWKQKXVkrgXV4XCypkGAVGPr?= =?us-ascii?Q?45J0DbZsO8S3DAeQW8slyKoMrxSK9Hh6bq1ZhKJxGnuEuBCuyynt52V3h/vO?= =?us-ascii?Q?F9z4kotaQ+GrhvFwAVoe25UOgs519FI2O/reRNGMrpl9pAS+sbEhd93DWoMS?= =?us-ascii?Q?GN32l7oBiZpUdCs4MtOKzzglZXqLYd0zqLrVLkQQquYdrPISR1MZQaDJvLdw?= =?us-ascii?Q?rRkHABA0bNsJETI4Xy9gMrD0n6mVVfbN0sbRki2zVtVtuBWjcF9vdSly4swP?= =?us-ascii?Q?B1OPHZY0Nen1e1/B/AfJReoBVcaInSKqsKjqocIKkXVxuiXK6BAnUXSqPj7M?= =?us-ascii?Q?4VBw5vjSwlMpovNlWOYdBc6b38OXme1LpqrkakZqtMYQJRBRieLyzzXm43EM?= =?us-ascii?Q?y1HD06Mae05pdcQ/qcYf4KZuHRVdJgrX4hGA4hkU98+1QF9zE/TyV0Z2Iwke?= =?us-ascii?Q?sFGORueIz6Gd9TsVt7b7GUZq91d2elrsl2xC8PBeRaoNJKtwZWOeSe+4SX3P?= =?us-ascii?Q?xTBc99WWSPguqUr2yJIMb5vIcg4fm2VTAAsA7dPf8v9DbYyZVtMp9Neo8dQw?= =?us-ascii?Q?J+5S2Okjkv/kWcwQSZdrRLMCaaFKhjc3KX9Ham6j38rTypex794IM/+m8Dm8?= =?us-ascii?Q?tAbtLDCPaHcvLe6z1ffP4Rd0lFInx7Ul52CK09a9iZ5/k8eGX6U2iuVKAocN?= =?us-ascii?Q?tYFHmp5/UaxVyTdXW9/oiCRF4eyZq0hIZYk0tmPZELdDxweJsp0eY6SYOAKb?= =?us-ascii?Q?JLrfYriMQcYZDK3CHEYHxhQU8zZxfW+eT513Mb7xXJf/tlAGyFHVYIB2cuN/?= =?us-ascii?Q?Q0Oj/045r7kfZRxsVcPf9a9+1nnv8ZesPcST0JxYkTuNm4G7qeqvcIqWxbN/?= =?us-ascii?Q?q2s01/uVWaMneGOAhKvgdjV2cUrMhgegKoTiDHZFM2wLOla1Ay8HrUM0W6G5?= =?us-ascii?Q?trpU4I8aHP8z3V9Ap4IwxOo0QhRg1ygKa0hQ70BW/uEAAEMEnT+/+RIQPaCc?= =?us-ascii?Q?JF0C/rOooMu0cGCvucCtcA2NDg4MZiXRyk4OfNFrXucAv0OedsplOqagZNdx?= =?us-ascii?Q?X1g25iJqfPAmbEvivbbC5qgVjt?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB314; 5:5dfp7WY9WItelCeckdzXXBrGIwBTp8lsURSqVGRjD+7s6oX6GgQ/dphiIFPHGtAinIYMMmgrNz0tpzdfuX+8F4bxH5aLXtc8JuZShbK1xq2+yJZhpKNPSIdf0bpRZyvcozfzXR2HglvnbT5axFu3xRpeJoWeySTGaPkhQFMytnw=; 24:xzMeVxPGzdXR4Fivm8Ujh95Uy1JxmwPZYmp8zexoAo0NaV2rdtb1eZTshm8MuswfnLX4j4ssQXEfiFM5RxFuW5XtihoIwHVMKZOd/Sz0Hs4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2016 09:16:44.6296 (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: BY2PR03MB314 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,