From patchwork Wed Jun 15 14:52:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 9178711 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 BD60360776 for ; Wed, 15 Jun 2016 14:53:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC6C027DA4 for ; Wed, 15 Jun 2016 14:53:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A002F27F17; Wed, 15 Jun 2016 14:53:21 +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 845D027DA4 for ; Wed, 15 Jun 2016 14:53:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932740AbcFOOw7 (ORCPT ); Wed, 15 Jun 2016 10:52:59 -0400 Received: from mail-by2on0062.outbound.protection.outlook.com ([207.46.100.62]:3520 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932998AbcFOOwz (ORCPT ); Wed, 15 Jun 2016 10:52:55 -0400 Received: from BLUPR0301CA0025.namprd03.prod.outlook.com (10.162.113.163) by SN1PR0301MB1632.namprd03.prod.outlook.com (10.162.130.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.511.8; Wed, 15 Jun 2016 14:52:52 +0000 Received: from BN1BFFO11OLC003.protection.gbl (2a01:111:f400:7c10::1:189) by BLUPR0301CA0025.outlook.office365.com (2a01:111:e400:5259::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.517.8 via Frontend Transport; Wed, 15 Jun 2016 14:52:52 +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 BN1BFFO11OLC003.mail.protection.outlook.com (10.58.145.14) with Microsoft SMTP Server (TLS) id 15.1.511.7 via Frontend Transport; Wed, 15 Jun 2016 14:52:52 +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 u5FEqkpf011007; Wed, 15 Jun 2016 07:52:50 -0700 From: Tudor Ambarus To: CC: , , Tudor Ambarus Subject: [PATCH v8 2/3] crypto: scatterwalk - export scatterwalk_pagedone Date: Wed, 15 Jun 2016 17:52:43 +0300 Message-ID: <1466002364-16945-3-git-send-email-tudor-dan.ambarus@nxp.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1466002364-16945-1-git-send-email-tudor-dan.ambarus@nxp.com> References: <1466002364-16945-1-git-send-email-tudor-dan.ambarus@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131104759729805047; (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)(7916002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(69596002)(50986999)(8676002)(106466001)(81166006)(48376002)(81156014)(8666005)(2906002)(4326007)(19580405001)(229853001)(50466002)(47776003)(8936002)(19580395003)(2351001)(97736004)(76176999)(87936001)(356003)(110136002)(189998001)(11100500001)(92566002)(86362001)(5003940100001)(50226002)(5008740100001)(68736007)(6806005)(85426001)(2950100001)(104016004)(36756003)(105606002)(586003)(77096005)(33646002)(7059030)(4720700001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0301MB1632; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC003; 1:JBa4RCOgGgnagvEQ/pJ4pUcZZg7J6Ufp2pvx4wodkN0HiUsBxCnEBbtfC5hc63EYFFlhIkwkUijrQpoTIBeVoaFAH42cqa1hDcsMH0fzI2kxiBMj3h93kemPPR7EXXZ8VsObFM4c4n/XCfbLTDHZoT+lQfhi/9dMXNA/Bp0DQA8HqN6p4wS7Hw/iGTnP957btahNQJVbe1hHATBrstt+LKjws9caZ7z2ciZUrLA7SnBHXtW21gpw896J9t9dCXI9r20vxDG/Etf/wemV1POm+IOh77ksQfrfkXQ2VRcjMIKdCdAJ4tAJ/O0Od78OO0VXMU/4oZPA+pes+qhjmDkSJHka34BaJjDbUqhalEW7w9O7dBYnY7Vwur/1KzGEeBXA2E5h4Wy2SMXSj5ays/+jcgmcES1Tcr4An8vyhQtu9Ze6Ylr+4jZK9dA9W13WAuN1Gj0Pc2EoVNCml6Wi17bjBGZiK8IkSGit608kwyEjseBwjA4lZzznr6hIwTQmZCxDdi1ioMGc2C+4D+fVa/ej8aKhWZhI1LmH5V0Z32gmAMDj+2PUC6zk6mCJFYNxhNJyaQQOLFbNU+X5B7+8MxK/AxZgnmZLwzJXCOH3EF4gwx+OzoLiluLFXQSa9NPYbut9Jt9MGDbtM1obYznEVnk13WNWHqFVnabqe2214lH33ViwBe0gtYP0zNVvbMr9nFrS MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: ae05a174-481b-47b5-759a-08d3952cba83 X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1632; 2:jz44rwtTCNBoZtfBKN/ZNm9OknlR4BuvEfzAVdGEQr6UFxmGbkVudhEPdC0Y2JDP5ULm25XgZBNKZZ76QTxYfADiU5pJWvH4YUKl8K4xrUjClOOHHZ5dcGVH6qp5iIiTmFGGpeQ8RrSIQVgAWQeCLhzrJf4RR6E9y4YA0y8yLxGRXihjUYIe046pVWB55Ecd; 3:kb0a68Hqa4bkIHExV3CTSfRdl0NPKpTYUc3bluPUR/emjkvujh4U+s33zBkyDQ332aen2TLw2zqyZrK0Kr8nHekiGQLViDURC5o7aH5mcy38z0YnoLfIBpvTulK44nTh7i8e76TdtcEBrn/Qj/+yDH3Qqp0ejtOIgfmSiSxtU9Xy1EcMZ6g2HBYl6rFCojH8J0gVkyMVvfmhX6KemOZHsQkiQ0pbaZOV3xR2ivqnxs8=; 25:v85FjfgmEanw/T8JEBbwUcUp+5sMx0rrvJyxW9tzFU2oDUxZtsd7oFdNu7Y+TSoXa+LpYEgCoQlUpWV3/W4aQ3OZcFH7PkkLHoK8yraHH3vSxRYe50CJqz/YqxQ+78BDg/Fk4ewm2JnU3Iq/9knGSLWnUHHNp6S0m9VrnPNtSi04BbmQ5ZB30hkZnNoYm1XhqUfvi1EUj+LYzU6LCc1NP7qPLIDgH9/gmnAUkvyZ9tdl0imiP/Mfffz7VPalqECKPG/WpiyR/GOJOMsNHmEE7Fjl9qbmiaicdYILL47/iV7/FQ3HgSzzmQTW8iXipIywrT+HmoCQGNK3266XdW+FniHWLpzck0X8ouFzYxQnttdy/8DL30xH7i802BzOcMtVcRUsPao4YDpnIIawUB2L6uRzuO22WCQ39SVYcf8zgyk= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1632; 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)(13024025)(13017025)(13018025)(13015025)(8121501046)(5005006)(3002001)(10201501046)(6055026); SRVR:SN1PR0301MB1632; BCL:0; PCL:0; RULEID:(400006); SRVR:SN1PR0301MB1632; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1632; 4:gnLFSs1hunWkERogNVyyPWmXxXUdoKbZyVAuw5CSy+gl5d05ikFOGqoOIcKK19nuMlztrdDscFXYyT0MSZdYTD/3zkDCN1ik+vu5IHMbMI4hPrFuCOVx6nmFalwoO0YHmvTONP9FrKAA7ySXDnsHU/gvBY4pOukQNVZ71S34E4ze1LmNdTGvVSNJkvNoiDaWp0iMYl5t59bnjKbHutJzi3o7Ukr9OCfFk/yEcYKeiHT0rGkjp+Kg5GMt1K0kvb8zyaLrGZtbEohf3PynkNnLKwwCqCR9VbgO+rjtEuEYJDlCT6qbZBkmJ4+m12Qi1cqAgG3zk0vz/pBtKahCEje5L5WmwiF66VMMFKP6VVGMO1eCUiRXkdKHvbYsY8+Qtcxf8HWpF5Sfjp93o5peSKTnyBsTp5ili7S1CCLx/04//PRNqU+SeewB6i8KB7tyD0a+OIysZN/O7Wj0R2ofK/jDlU0n2hswgE4Np354ab0kKZpm0ebrSj74uenNZj6ThIOVbcJRpy0JssWQFxOug7F8jw== X-Forefront-PRVS: 09749A275C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR0301MB1632; 23:8JCYreqNh6aaUkkWo6EaC5yxn44tPC9ZYO0ycY1?= =?us-ascii?Q?4v6JnPBmKFQvFj/2DtG0f+MAKKWwlqonbeIeiDPf2TYRd5/8AR/NjbtoslSL?= =?us-ascii?Q?cK8DNzUuzoBGlVeszJD6J+hZMZa4aIix4i8m0koERBmOaF72FzfYaYWw/Fur?= =?us-ascii?Q?ZZrGnskPZc7tYmzqQ5kLRt5JPRYfG7fYws+9aw/cks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w4zAFrhJoRKdPRsLdpdPM3ia5lsrh4US8u?= =?us-ascii?Q?3JFUR3QfskzVeIQD2QGXDd1RQavF5Lf76rgZbIEVFyiKr50k4AMXDegwHAY/?= =?us-ascii?Q?2AVn1H/qe1THDx7yR8vQkprhetSyyjna4q1AVE9OS5YiyWsBnw88Jo6sT2Q?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1632; 5:/90N1YEG2yOOddifEBIBJyOrwIejT9I9dNQJDbk736q2F4eHskwm4Tk4exQeNH0c7UmFMeZuL6vg/nGST/ArwkbH8rLi5KzXv9rfLo/HUTBePpPhD2mGtFmS0GkQ0PSfleqkKzC1EULJ/92JaL3fw/IHEjXNKAUk9nl3X9OJkws=; 24:V/6BTKk1IIP6vJiQ/HqRdP+t3d8b+zsM33zkMeg02hv4NN9MVG4I4tLsdSRo3QHpGm02p4XoEaFd+YSFGIRX/iwDVbgmWH3x1BB6VvcZyoU=; 7:LOmYC+u4qzP53y/b83YKpHh3xn55cIy2zOEM33GJqBfHoNzgDONvRw80kWqT27amW0BF61+lEFd9TUb6GoWOSv5TvlF+N0gMS0UPWnWAj0UruEJN5tdT3cDLevBNV7CZZPHHwVJ+d/Q9yzPPg7+QjU9Oe8PawfRtAB5FPuBP3yBCiXTqIsOH7tRUF5Nxc67NJDuk2nLNfcJKGgbTI3WYkQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2016 14:52:52.7153 (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: SN1PR0301MB1632 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,