Received: by 10.223.148.5 with SMTP id 5csp7381100wrq; Thu, 18 Jan 2018 04:53:35 -0800 (PST) X-Google-Smtp-Source: ACJfBosnQIlOD+qcDYThXzDEuzQZ9QyObJ8Pir/lfM+jg3IdWACzgashwHLoWCmLvp8FgIj79gBC X-Received: by 10.99.148.26 with SMTP id m26mr36033857pge.157.1516280015373; Thu, 18 Jan 2018 04:53:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516280015; cv=none; d=google.com; s=arc-20160816; b=MuoDjL5hieo2i0xbwg1sWRe6m+g8qOiuW5YLWYrDqdswTrJUGlq24UEgYxO1Udvbtj o06LyoUzT6KDDYE4jUkbP8SYG6cec26yRSsuRxrZJquA3DryHRAS7cOBA+KZCGDQoIcb tfikXU03VuZZg7CTpOg0MxQVVVDU3iHA6TuUYBUGOc3GTzU8Uf1277M/OFk/oZybmMhO yzXv8bvTBc0j3LCoX6PgPzdBfZX3tV6bc8pEN3NI7iLicZHEB70da6fs2L1vVG5CL1nQ yB3q+okZsJ6wGWS//WGKFMFjYBzPx+sVCkdcjEJlEzay/U6j4/IgAXmDnrPs3y7UBEPn E0+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter:arc-authentication-results; bh=Xim13ViSsGENpl8CUAslxPdVGjPdb2hpSmJMp72TmAk=; b=enw10v40mXjE+Q3RJ5Gh1CiozKwebC2DDDAN+X4PLprg+iJQgmoFZR3kYz2mA8HIii m0NnCYvOkz07k/TodVZjOsdltTjL/0NDzQAmOEdJM7kO+Xf33Oru0bVm0+UoWDqwFUWa tLIVczqqqr/16U46ZPVS1D75RXnkuHDfaMlV0UVz+2lN92sErTJfo21RZB2ctxOZF38Z +fKWFzhMw1n/ottoQ83UROKaqDJHqgxNE7CnL3kFYT6hj3zyB2GRBi9goqCDwL3jEYJP byhd8IxDG3LL1OZYWBYZ78x+8oSw3TVY9udZ/Gog2vESSHNpwlcnlLDvFhysFQiD+kMt KPkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=VH34fyCO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z72si6690986pff.100.2018.01.18.04.53.20; Thu, 18 Jan 2018 04:53:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=VH34fyCO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755459AbeARMw5 (ORCPT + 99 others); Thu, 18 Jan 2018 07:52:57 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:46126 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754952AbeARMwz (ORCPT ); Thu, 18 Jan 2018 07:52:55 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180118125253euoutp0182e65ca8c32b3b67c4a1715b38f3b7b7~K6JoYbpc22668026680euoutp01I; Thu, 18 Jan 2018 12:52:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180118125253euoutp0182e65ca8c32b3b67c4a1715b38f3b7b7~K6JoYbpc22668026680euoutp01I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1516279973; bh=Xim13ViSsGENpl8CUAslxPdVGjPdb2hpSmJMp72TmAk=; h=Subject:To:Cc:From:Date:In-reply-to:References:From; b=VH34fyCOwidEuZkMRj0N5Thsp+yibAfJQf2JSSYwFVLuorhPsTa6AEi2oWYFbMnUa TJiFLGSAP1ENN198i+Fa1SRRHZqXOMMi5iAa3LQW82MZrVU0Vc8pOsFEwmx2oJ6eDj BlmPT1ZNeLgwim0bYMCMPXW5HZ5EfWBF67t/u5y8= Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180118125251eucas1p18404440c9ebc97f55e5003beaa62b424~K6JnVY-hx2297222972eucas1p1G; Thu, 18 Jan 2018 12:52:51 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 79.86.12907.3A8906A5; Thu, 18 Jan 2018 12:52:51 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180118125251eucas1p2579f5fd57d38e10f6962ff0a44757b69~K6Jmknqin1309413094eucas1p2B; Thu, 18 Jan 2018 12:52:51 +0000 (GMT) X-AuditID: cbfec7f1-f793a6d00000326b-ee-5a6098a3c750 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B9.81.18832.3A8906A5; Thu, 18 Jan 2018 12:52:51 +0000 (GMT) Received: from [106.120.51.18] by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P2R007K0542GO00@eusync1.samsung.com>; Thu, 18 Jan 2018 12:52:51 +0000 (GMT) Subject: Re: [PATCH] crypto: ux500/hash: Add empty export and import To: Linus Walleij Cc: Herbert Xu , "David S. Miller" , Bartlomiej Zolnierkiewicz , linux-crypto@vger.kernel.org, "linux-kernel@vger.kernel.org" , Joakim Bech From: Kamil Konieczny Message-id: <3a52171a-0054-fcbf-ad45-062c72e5877e@partner.samsung.com> Date: Thu, 18 Jan 2018 13:52:50 +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+NgFprDKsWRmVeSWpSXmKPExsWy7djP87qLZyREGcw4rW2xccZ6Vos551tY LLpfyVh8XvWUxWLKn+VMFvfv/WSyuLxrDpsDu8eWlTeZPLYdUPW4c20Pm0ffllWMHp83yQWw RnHZpKTmZJalFunbJXBlfJixk7FgHWvF2WdvGBsYl7J0MXJySAiYSLz4d4oJwhaTuHBvPVsX IxeHkMBSRonLp/4wgiSEBD4zSqza6wDT8KH9OytE0TJGiZcTpjBDOM8YJTY9vAQ2VljAReLu 51awbhEBHYnubT/BOpgFpjBJzFk+mx0kwSZgLvFo+xmw3bwCbhILNh5gBrFZBFQlJs2bzgZi iwpESHQ928UKUSMo8WPyPbAFnALBEjMXTwVbwCygKfHiyyQWCFtcorn1JpQtL7F5zVuw6yQE rrNJfPt4mRniBxeJ90+OQz0tLPHq+BZ2CFtGorPjIBNEQz+jxPIbp9ghnCmMEsenXYXqsJY4 fPwiK8QKPolJ26YDTeUAivNKdLQJdTGyA5keEk9kIYodJTY9XwMNoYeMEg/vNrJPYJSfheSf WUh+mIXkh1lIfljAyLKKUSS1tDg3PbXYSK84Mbe4NC9dLzk/dxMjMM2c/nf84w7G9yesDjEK cDAq8fAaBcVHCbEmlhVX5h5ilOBgVhLhfeedECXEm5JYWZValB9fVJqTWnyIUZqDRUmc1zaq LVJIID2xJDU7NbUgtQgmy8TBKdXAqN6VfX/brk35Lz0+3FQ0/ChYoCt8zEj4x7kXleVqfwwL Zd0uKXy1rI/nUM7qW5dRkTFNlO24weGbt9N+r5zB6O+w8IPVtx2aAad9Wj6E3onsNt3QEfGk 80v/6jthX43dJvh2KGaquy5Prnao3Kyy4FVFd9P5nWx39q+7HfuTL8W7rfj4ofCfSizFGYmG WsxFxYkAadKb0C8DAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrALMWRmVeSWpSXmKPExsVy+t/xy7qLZyREGTR2c1hsnLGe1WLO+RYW i+5XMhafVz1lsZjyZzmTxf17P5ksLu+aw+bA7rFl5U0mj20HVD3uXNvD5tG3ZRWjx+dNcgGs UVw2Kak5mWWpRfp2CVwZH2bsZCxYx1px9tkbxgbGpSxdjJwcEgImEh/av7NC2GISF+6tZ+ti 5OIQEljCKNHTtAcsISTwjFHi43p/EFtYwEXi7udWRhBbREBHonvbT1aQBmaBGUwS/+6cYoTo fswo8bWhC6yKTcBc4tH2M0wgNq+Am8SCjQeYQWwWAVWJSfOms4HYogIREk0z57JC1AhK/Jh8 D+w8ToFgiaatJ4FsDqAN6hJTpuSChJkFxCWaW2+yQNjyEpvXvGWewCg4C0n3LISOWUg6ZiHp WMDIsopRJLW0ODc9t9hQrzgxt7g0L10vOT93EyMwHrYd+7l5B+OljcGHGAU4GJV4eDtC4qOE WBPLiitzDzFKcDArifC+806IEuJNSaysSi3Kjy8qzUktPsQozcGiJM7bu2d1pJBAemJJanZq akFqEUyWiYNTqoExqNavmufWorgNTzW9VCeskGyezDRDet6RBywK08vqQk4o3/ol/i3rHfcu x7iMOTFX/v+feYSxVnOWBNMqTxnjippLyxVPN2k4cU3q3Zjc0/FY5qcA76O1j149nJgm8vpm w9RQxo535dvWs0wR2Mk2ccNG8fWnVjx/dN+yOjhir/nTxnf1Rz+eVGIpzkg01GIuKk4EAElL sKGDAgAA X-CMS-MailID: 20180118125251eucas1p2579f5fd57d38e10f6962ff0a44757b69 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180116163219eucas1p132fafc2db8cb9b3af1a1f22d8bf2fdaf X-RootMTR: 20180116163219eucas1p132fafc2db8cb9b3af1a1f22d8bf2fdaf References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.01.2018 11:06, Linus Walleij wrote: > On Tue, Jan 16, 2018 at 5:32 PM, Kamil Konieczny > wrote: > >> Crypto framework will require async hash export/import, so add empty >> functions to prevent OOPS. >> >> Signed-off-by: Kamil Konieczny > > Acked-by: Linus Walleij > > But why isn't the framework code just checking the vtable for NULL? > > if (foo->fp) > foo->fp(bar); This will be inefficient, it should be checked once at ahash alg register, or with the old method by using wrapper -- Best regards, Kamil Konieczny Samsung R&D Institute Poland