Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751277AbeAPRdX (ORCPT + 1 other); Tue, 16 Jan 2018 12:33:23 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:48748 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750811AbeAPRdV (ORCPT ); Tue, 16 Jan 2018 12:33:21 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180116173318euoutp02aba22b8af6d1584863d28cc98122de81~KWr6GuOzb2021620216euoutp02J X-AuditID: cbfec7f2-f793b6d000003243-ad-5a5e375d189d Subject: Re: [PATCH] crypto: mxs-dcp: Add empty hash export and import To: Marek Vasut , Herbert Xu Cc: "David S. Miller" , Bartlomiej Zolnierkiewicz , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org From: Kamil Konieczny Message-id: <08646712-9fc0-4f61-3f3d-31fc7cb6cf90@partner.samsung.com> Date: Tue, 16 Jan 2018 18:33:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-version: 1.0 In-reply-to: Content-type: text/plain; charset="utf-8" Content-language: en-US Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJKsWRmVeSWpSXmKPExsWy7djPc7qx5nFRBl/ei1psnLGe1WLO+RYW i+5XMhb37/1ksri8aw6bxZu2RkYHNo8tK28yecybdYLFY9sBVY++LasYPT5vkgtgjeKySUnN ySxLLdK3S+DK6Fkzh7HgP2tF29bNrA2MT1m6GDk5JARMJG4cf8EGYYtJXLi3Hsjm4hASWMoo 8bb1CyuE85lR4sH75UwwHY/evWOGSCxjlJj9dic7hPOMUeLMzxdALRwcwgJuEt+Pgo0VEfCU eLi/A2wSs8BCRokf/efZQRJsAuYSj7afAZvKC1Q/cdYDZhCbRUBVYumM+6wgtqhAhETXs12s EDWCEj8m3wO7m1PAWuLbhmNgC5g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CQ5mJRHexuCYKCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8vXtWRwoJpCeWpGanphakFsFk mTg4pRoYJUs7ll998Mzz0uLE2OWsqeu8+40+iSkmKimaM7qmT0/J2SY7/efV8zIPLD/NXDgt Jmyl/+t8/ZOHrhmcOdwi8iVWb15KIs9my86Ez/a2S3+9kz5jcG/ng7s3astSTJvcn933vJxb l3Q7c2VSQ8zC4Jp5bC3P3nJcEgv1D2zOm7Hr+tOzt2bvVGIpzkg01GIuKk4EANKtQaJ+AgAA X-CMS-MailID: 20180116173315eucas1p1e3e6afb98f64e65177d45b15648b0845 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180116161641eucas1p1f776ccf0d08da2d3b670e5b2ad550ea6 X-RootMTR: 20180116161641eucas1p1f776ccf0d08da2d3b670e5b2ad550ea6 References: <4f3389a1-d6aa-b3cc-2299-d638058ddd48@partner.samsung.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On 16.01.2018 17:56, Marek Vasut wrote: > On 01/16/2018 05:16 PM, Kamil Konieczny wrote: >> Crypto framework will require async hash export/import, so add empty >> functions to prevent OOPS. > > Shouldn't this be handled on the subsystem level with some > > if (foo->bar) > foo->bar(); > > instead? I am sorry, I should write more elaborate description for patch. It is handled by subsystem. Most drivers have them, and testmgr is testing for export/import and drivers without them fail internal crypto tests, so I prepared patch which removed these two wrappers from crypto framework. In summary: export/import are now required, so crypto framework can work properly. -- Best regards, Kamil Konieczny Samsung R&D Institute Poland