Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4744388pja; Fri, 22 Nov 2019 01:09:10 -0800 (PST) X-Google-Smtp-Source: APXvYqwLGNiz4Smq1mzmg/sV9qY2ig0/STH8V7Q+18epdOdDVrYAcTB/dhbFyH7uP2bE5y1OhyNK X-Received: by 2002:a17:906:1805:: with SMTP id v5mr21595801eje.45.1574413750084; Fri, 22 Nov 2019 01:09:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574413750; cv=none; d=google.com; s=arc-20160816; b=lAqLBGyZwbb/3OeWCFQvXEPCGJXTglVYguIiojZvqo2JkwkXq+OCsd7zhXNlhhz2Z2 8h8EvICC+WKs9PkR4nG2P9AAWtmhNm8lKPlV8y6XDoKz3K55vDT93dxFnAsetLM6IsVA xJ1RZ5l3jZsWOXrqz7sRk3tACB7vN+x7WqZbc0n+l4hM9ZpK4RZXJ/k9a8MPiqDeHvtt Cg4pagPH8Rd7sqsxImW/wVjxdXtKpuHs2Lj6sIC6W68dv4xvftohjdJRzs+H50PfmL4u PRZQGmmfmbLezSmmwOWKP/peMHAL6LtZWyTcctZqjQMTo0m9IR8fCmlGfFfYGc1GRmn5 NGow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=DupEpWsYCeCOcznr6jUZcsQQdoe2IihRugF6ngt3/Xo=; b=s8mbdzDLpS3Qe7mCXdprPYk4H2f6B6U+IXycKnuRkpKibTLMOemo5egKJ3HQtKtwxO C6CWQQ5wmDutdxsbrfduC9v+uv/SjFNd4fslaLrqvHlrknwNJkkkm2neNL3dJf5F1Jhb s1RnYQ81f7U9fBjH/pRSYJG9Y3DcGicDQoX53iJEouNVIh78tiue6FIYfkebs8dgj/MG 1ReYXVar9zHvBXn0160gpy3nhKyomyrFnUpg0uDre43r9CPF7MQgZM1KMT7NND3/KKGX abM6tjxm8GV+s13yRVVLaRBEI2Aw0v+vRNkLzLV8iD1qXu5bYOY+VeigM9FzDkWlb+qv yXEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d30si4379515edb.403.2019.11.22.01.08.41; Fri, 22 Nov 2019 01:09:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726563AbfKVJIZ (ORCPT + 99 others); Fri, 22 Nov 2019 04:08:25 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:46772 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbfKVJIZ (ORCPT ); Fri, 22 Nov 2019 04:08:25 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1iY4vO-0000HZ-Uc; Fri, 22 Nov 2019 17:08:22 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1iY4vM-00051e-1p; Fri, 22 Nov 2019 17:08:20 +0800 Date: Fri, 22 Nov 2019 17:08:20 +0800 From: Herbert Xu To: Iuliana Prodan Cc: Horia Geanta , Aymen Sghaier , "David S. Miller" , Tom Lendacky , Gary Hook , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx Subject: Re: [PATCH 01/12] crypto: add helper function for akcipher_request Message-ID: <20191122090819.mv3txjoxmiy4flv2@gondor.apana.org.au> References: <1574029845-22796-1-git-send-email-iuliana.prodan@nxp.com> <1574029845-22796-2-git-send-email-iuliana.prodan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1574029845-22796-2-git-send-email-iuliana.prodan@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Nov 18, 2019 at 12:30:34AM +0200, Iuliana Prodan wrote: > > diff --git a/include/crypto/akcipher.h b/include/crypto/akcipher.h > index 6924b09..4365edd 100644 > --- a/include/crypto/akcipher.h > +++ b/include/crypto/akcipher.h > @@ -170,6 +170,12 @@ static inline struct crypto_akcipher *crypto_akcipher_reqtfm( > return __crypto_akcipher_tfm(req->base.tfm); > } > > +static inline struct akcipher_request *akcipher_request_cast( > + struct crypto_async_request *req) > +{ > + return container_of(req, struct akcipher_request, base); > +} This should go into include/crypto/internal/akcipher.h as it's only used by implementors. But having reviewed the subsequent patches I think we shouldn't have this function at all. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt