From patchwork Tue Jun 7 14:24:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 9161541 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 B650E60467 for ; Tue, 7 Jun 2016 14:25:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A730625404 for ; Tue, 7 Jun 2016 14:25:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C2072793B; Tue, 7 Jun 2016 14:25:00 +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 40CF825404 for ; Tue, 7 Jun 2016 14:25:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755377AbcFGOY7 (ORCPT ); Tue, 7 Jun 2016 10:24:59 -0400 Received: from mail-bn1on0063.outbound.protection.outlook.com ([157.56.110.63]:31744 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755158AbcFGOY6 (ORCPT ); Tue, 7 Jun 2016 10:24:58 -0400 Received: from DM2PR03CA0051.namprd03.prod.outlook.com (10.141.96.50) by SN2PR03MB2381.namprd03.prod.outlook.com (10.166.210.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.8; Tue, 7 Jun 2016 14:24:55 +0000 Received: from BY2FFO11FD030.protection.gbl (2a01:111:f400:7c0c::175) by DM2PR03CA0051.outlook.office365.com (2a01:111:e400:2428::50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.8 via Frontend Transport; Tue, 7 Jun 2016 14:24:55 +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; nxp.com; dkim=none (message not signed) header.d=none; 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 BY2FFO11FD030.mail.protection.outlook.com (10.1.14.211) with Microsoft SMTP Server (TLS) id 15.1.497.8 via Frontend Transport; Tue, 7 Jun 2016 14:24:54 +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 u57EOmem003691; Tue, 7 Jun 2016 07:24:52 -0700 From: Tudor Ambarus To: CC: , , Tudor Ambarus Subject: [PATCH 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Tue, 7 Jun 2016 17:24:42 +0300 Message-ID: <1465309483-2703-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1465309483-2703-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1465309483-2703-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131097830950900033; (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)(199003)(189002)(87936001)(77096005)(586003)(85426001)(68736007)(69596002)(76176999)(104016004)(19580405001)(19580395003)(48376002)(2351001)(81156014)(105606002)(6806005)(229853001)(33646002)(50226002)(50986999)(8676002)(81166006)(8666004)(92566002)(8936002)(106466001)(86362001)(5003940100001)(11100500001)(110136002)(4326007)(189998001)(36756003)(5008740100001)(50466002)(2906002)(97736004)(47776003)(2950100001)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2381; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD030; 1:BhaLYyjmySc7gBzYabHqUAuCmXQTpl1xGhZFQAB7IU3poRMU9zYAxeyLyNcj19zNqt/D58Y2CIMY9garM25YFgRqh/LAYb8FmtUzPkGHFu0N6sKp53r7RDtwd/n20LdnGT2WEZ9+WZyFDETgGKn1jhaTbQ23EBfT4Dct+xjlFp6ZQsuu4MQRBY0Scolq4zcmfoaJCF+egABrAOioZZdqSEgSqFTzGPhGNjGJOZYQsowQoeKxeKB9VFZ3ncFPOtDfkPtu2lubdRvtZzC+uBKlDa8ABlKHpmJuN9kHuw49jQYi7WNakK9rH8JLDiLgUnOrz3HJiT2rcml7eJuW1Dclvg6OTja97QY9V9u2fzF7GgoYcQ5p3GyTUzdZ57a7puViDwctnqRbyiTmO+SXi65i/9ABjc6UbVRiR7CQYMFsdlrVxnkAkFmAXSysur1ahWg0lvyN/VjxR/5YcJ53AeF6sMTuYmfc4kIrdK+Z5yDpmPwSQeqk5VuxQmZN9GJtjOD/A/7LkLuKyqfLRKDoiD3xc6r7Cks/xeye/gKPpy/GgKeOiS7pP9ZXZgywouYA+Uh1xMStEsUguOscdUuKemtLcKxIhiwhFbPZZpvtGcyAFSdpBaGkYojaO/kXCDrU36VlfjiTtb3wxMqXv9vUpEBMFmkx0OAIamMmHN0M13sAqX18GyNJ1iIoAd9RfjX0XBzU MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 237446c7-2195-4c7d-80b5-08d38edf7f01 X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2381; 2:4faOno9fosA//7BgPutoafGk+tuG3gwUn6ZEDvZVsyFMVAT947TljlTbsx98m3FsiKbxuDgh0oI7eJpmEnaFLKNYyskHNoiiRdDBkT3yNVvoCMyzI2ggQ4zWbbJJKZlFPEjLPIA6J+c4s45+HJBp6ckJ1s/Kwging3f2bH5NzoaRvpg4amB5t0GqfPh6kXUi; 3:d1Psa6CiNOANMtPbxjM7HLR+6NuMf9BGNRT4vhbKr9S+s6dnnirYP2bKqDooOar853nLLjkyGoxmBFojaLn8SX/i+VaSrctsZRyOCdiqDH9ZvbNZwYLjSO4D68sLvRaReg6d8IN9CvvKEj/sQKIJVpzP43xHK389QS+EmjgyvhLUFrNTGiOo4kx7VoOXOiAmayTWGBwTabEBLw+s0nIsQagtb++FH/5GKk21osyvezc= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN2PR03MB2381; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2381; 25:74Xi7pFJrzKfkokTF39DYzjtDYt39cyW8EPJtC9UxiVtSEXLehBmf9bPGZYo9LPn8I8aZ2oodYj1iVNdoQTO8lFpgZfoBd29qRLc3CtuhRiE8AJ13S0AkCw5kEjVQ5UY/qCtnJG5TXUe4y/YnbPm2EzsXV98/YDOT3hYc95Xoz8CjRntwRemWtpk+BZ6ArGpRlZ//ImmZYT997RWtpcnBUzENmtrVstNK5qlhWsldeT2DRiR90CWXqextsro6cz42E+Fm34m3o+SDB6K3ZCkW6tBJhd5YrVE5lVFuLwxht54Kt4bHk0apIz6zQAesikzwckr9fwPQDUYLCgGVHdQTU7BUFjtPQMGRP5KuHtdDvgLjN57HKpG/deJFrZ43/BlK6W962fxWCVN86y6qi57x3cJyh/PPM3KSf90J+YZRENz7ed/5fmgwLj7P6REkt5oSMSOkSVNk01IslZ7vRXBNQx9YfWhTmfrst4R1FWWmcOI1PlyvPctGXX84nQMA9Hg6LM0kfhwfxgexKofOcoVY2hNfpWZQpibObIXh5vSC1zm//1TjcY15RUZXT5a6PyhIYaeJnrf9dhXDMN+fNvj3FUYFXEDXA08sxYVYYpxB1IdYek1hzJtY/R3YWuWCdAAMkDbH9vCnCEUXSxwROEwuQy+48Lx9uONxOv8Pvrz4XTjgLuSblynP7wuhXlA3dXzUp/EdtjXdA6kFK4TMV324A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13015025)(13024025)(13018025)(13017025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:SN2PR03MB2381; BCL:0; PCL:0; RULEID:(400006); SRVR:SN2PR03MB2381; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2381; 4:vG2nJpxMa0lM5C5NUIgVjMY/uk2WA/qntEtGMkAOjIlsonpjL+3KemsBya4RE63/aqecFNR0in1rozXFVngzRKfyX22hSdoAwLG5QJXSv4igm1TUQEaMYtD/2x7dBkVyLGfvO3saxQnW5rFh0dvZ9EpmSrnLUXUT8owkcrKFTiMwO+ZBuMSu0PpNK67ZEVx+rsSpSDhudGK8O7bn30IMaWSsVpt8pPtPeWGAP2h+3iT+gdl3Zx+MLr8zvm5IT+6d1sVmqq/uZVvkshVP7RmOmiHVw21jzrGiOQpcB0i0TRRU0oL9KW8QR58H7klcyTw2nuV5J/KeTK8OD6LuEclYoFPdoQtLmKND4PJaiFWaxI4BL9fTiyQtgxGM17P6N1fb3D2RoCQcf/GMCu88PXXCHygztxHydaUfYIbPYC9ofRrELduCLbUksNqXCn62n4LtIOySuv0Zzg9eTE/QNcEYP6flwojcXbga8aRbCCMAnAGUj9o2xODiF0ZAiZ1HXEcQYlBmcPaxNTCNyghAnzcOnw== X-Forefront-PRVS: 09669DB681 X-Microsoft-Exchange-Diagnostics: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qr5XuFJ8HlGo/9NhW3IR7t3xSqJ1BQd+LsktWU?= =?us-ascii?Q?WBnXg6TeEsJzT5YYkHi5fAhxMPoRpURDCe4xoBnUneAGbub2BCvDo+akzW0r?= =?us-ascii?Q?esRYknw0vZkNcTviBcftbXq0uF7lVH+PHTrttE/GWle/a9eghCUGctMJ/95Y?= =?us-ascii?Q?IpMxsYzHOZbt2fmIfpooz8yrz01SnB2u8OuB1b6Rmm16oI/QPqC4bzDKe6mx?= =?us-ascii?Q?ZWEdbJt2pcYZyY4NVETGC4S1GP/zTPrOuJadIjq8d2MgeZbTUgVUrW24esm+?= =?us-ascii?Q?mVaJomlUxYddNIde/f9vV8ghI2QSmCv42NcgvY52PSZpAgwX3zQ9qZUr9D0w?= =?us-ascii?Q?grgmKQEQSzuJpw=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2381; 5:i1IYUdrAIeIHN9OBsiD5E/JTtL+JV6JzwkxxjnZnm14Jm9ciDYX5SGYSt3bYF+W10EV00TPYbm1l6fWOvb30FAORLBDZBYHdVHtBNzaHde40jBYe5tJAQ3NqQQpd6bzMTZydd3u0o4juxEu2heJBfHA6b7ikWLs1T6Se/1b3lu8=; 24:icONxtF381K+vhLTfGPxAH3ffl1QgKQXlo238+Z9gp12eFTmQy4RykUIahtGGpR00qhM/JsCiytW9+bFppLPhxRee3C1cvvAHhzFgG/irsY=; 7:503JsfVFlM8ZAT5z4PdcH0YjVVf3DQ50r9zXV0gBP4ycdxF+u30Envss5qDeMtVe/q/mnGy369Cw96jF1fLL2cNjva+CWu1RYvC8/+bp7frWDNdU5gput6mW4Yq94k0WXFPEFIm8//27KlecHCOmC7dUm+rRPHnpk3CMkP4KpUQIxATQ6u1WO2+aF0w7VclbWARm9uAX+wKLhU9wBCqVtGb1PNMyE1yTOw/1EaKaK2I= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2016 14:24:54.7936 (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: SN2PR03MB2381 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,