From: Linus Walleij Subject: Re: [PATCH] crypto: ux500/hash: Add empty export and import Date: Thu, 18 Jan 2018 11:06:46 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Herbert Xu , "David S. Miller" , Bartlomiej Zolnierkiewicz , linux-crypto@vger.kernel.org, "linux-kernel@vger.kernel.org" , Joakim Bech To: Kamil Konieczny Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-crypto.vger.kernel.org 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); Yours, Linus Walleij