[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1520606135.26370.9.camel@perches.com>
Date: Fri, 09 Mar 2018 06:35:35 -0800
From: Joe Perches <joe@...ches.com>
To: Herbert Xu <herbert@...dor.apana.org.au>,
Hernán Gonzalez <hernan@...guardiasur.com.ar>
Cc: davem@...emloft.net, steven.lin1@...adcom.com,
arvind.yadav.cs@...il.com, colin.king@...onical.com,
raveendra.padasalagi@...adcom.com, ray.jui@...adcom.com,
scott.branden@...adcom.com, linux-crypto@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/4] crypto: bcm: Constify *hash_alg_name[]
On Fri, 2018-03-09 at 22:29 +0800, Herbert Xu wrote:
> 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.
[]
> > diff --git 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,
and likely, as this is a global name, it should
be something like crypto_hash_alg_name
Powered by blists - more mailing lists