Received: by 10.223.185.111 with SMTP id b44csp377828wrg; Fri, 9 Mar 2018 06:32:33 -0800 (PST) X-Google-Smtp-Source: AG47ELv/nM1H9AX6gfC61a9lh7IOfEypGO4K5GikxjtLcI9195EtfgjtCOvgguxRehdyd671kyN3 X-Received: by 10.98.93.87 with SMTP id r84mr30421208pfb.131.1520605953541; Fri, 09 Mar 2018 06:32:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520605953; cv=none; d=google.com; s=arc-20160816; b=ji4NDZn/HVfgmHhUtGhtGSXz8KQT9FS6vB8vz5JYz2UmRz5TDIfzFTntbC2pLZIlsp pOztvsQ82PxBOVe7ZpEWAorQgtlsF0d8iQadtOM4VvYItmPWVGKlECU5OVrXf2Ap0yh9 HI+AAx/sEKuzLFuf4EFS0rlS8EBTx88ZKRL+TCrD3TC4/NbtwnOpDYIr1KJBXdNXrk+n KCwa7UrS+YlTfI3msd887yVHw1T2kUx84Ptta8jaolQ8jAQjN5UPoo1eQU9+RuSelTEV 0ko72FM0TJkd7qJXmFFRBmvOto3wEMV7+7nxDWFQIZQgWC/BND8tzT/u28lxWlid94mo ECHw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=PU+0cqsRqjx2XRd5diTO2SEDndoUCODVFVtWbRkQbqw=; b=NR0moy8RtOMPA97atl0YhcKbxM+Po5uuR//8z+NFWtNPVJAXXsFw8OxvBi8L+6yv44 TDTllvD9Iv5L92UWvurRAwbSsDxnb33Jx+ASq18dSgjqgVs8sUlHOrsi7/zG8DOWZLY+ 8z1U5e0hbkksGREddys/NspAf4VAyiXtB8HbJSEDTL1fZVGGWVOuiXq9vT9MLnH7VPVH lVy8Lz9YFnV5/lKVg+qqNAQsk1G4WFgNRUD+H10d527t9cUn/w3OOduqsQEDGd1KPc9B lTdn0ugt9igF0wighlAuiXFzzblPc5k8ob5jxh3TxbVZHNZm+rjaQcTVHcvGD1Mv9xTa mzjg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p69si918430pfl.309.2018.03.09.06.32.19; Fri, 09 Mar 2018 06:32:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751212AbeCIOaP (ORCPT + 99 others); Fri, 9 Mar 2018 09:30:15 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:59794 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbeCIOaO (ORCPT ); Fri, 9 Mar 2018 09:30:14 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.84_2 #2 (Debian)) id 1euJ23-00012i-NC; Fri, 09 Mar 2018 22:30:03 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1euJ1v-0003Qr-33; Fri, 09 Mar 2018 22:29:55 +0800 Date: Fri, 9 Mar 2018 22:29:55 +0800 From: Herbert Xu To: =?iso-8859-1?Q?Hern=E1n?= Gonzalez Cc: davem@davemloft.net, steven.lin1@broadcom.com, arvind.yadav.cs@gmail.com, colin.king@canonical.com, raveendra.padasalagi@broadcom.com, ray.jui@broadcom.com, scott.branden@broadcom.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] crypto: bcm: Constify *hash_alg_name[] Message-ID: <20180309142954.GA12852@gondor.apana.org.au> References: <1519768888-19866-1-git-send-email-hernan@vanguardiasur.com.ar> <1519768888-19866-3-git-send-email-hernan@vanguardiasur.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1519768888-19866-3-git-send-email-hernan@vanguardiasur.com.ar> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 27, 2018 at 07:01:27PM -0300, Hern?n Gonzalez wrote: > Note: This is compile only tested. > No gain from this except some self-documenting. > > Signed-off-by: Hern?n Gonzalez > --- > drivers/crypto/bcm/spu.c | 5 +++-- > drivers/crypto/bcm/spu.h | 2 +- > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/crypto/bcm/spu.c b/drivers/crypto/bcm/spu.c > index efaf3cf..c7bb79e 100644 > --- a/drivers/crypto/bcm/spu.c > +++ b/drivers/crypto/bcm/spu.c > @@ -23,8 +23,9 @@ > #include "cipher.h" > > /* This array is based on the hash algo type supported in spu.h */ > -char *hash_alg_name[] = { "None", "md5", "sha1", "sha224", "sha256", "aes", > - "sha384", "sha512", "sha3_224", "sha3_256", "sha3_384", "sha3_512" }; > +char const * const hash_alg_name[] = { "None", "md5", "sha1", "sha224", Please make that const char *const Ditto with patch 4. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt