crypto: tcrypt - constify check alg list
this patchs constify the alg list because this list is never modified. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
d95312a3cc
commit
07d8f18588
@ -65,7 +65,7 @@ static int mode;
|
|||||||
static u32 num_mb = 8;
|
static u32 num_mb = 8;
|
||||||
static char *tvmem[TVMEMSIZE];
|
static char *tvmem[TVMEMSIZE];
|
||||||
|
|
||||||
static char *check[] = {
|
static const char *check[] = {
|
||||||
"des", "md5", "des3_ede", "rot13", "sha1", "sha224", "sha256", "sm3",
|
"des", "md5", "des3_ede", "rot13", "sha1", "sha224", "sha256", "sm3",
|
||||||
"blowfish", "twofish", "serpent", "sha384", "sha512", "md4", "aes",
|
"blowfish", "twofish", "serpent", "sha384", "sha512", "md4", "aes",
|
||||||
"cast6", "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea",
|
"cast6", "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea",
|
||||||
@ -1634,7 +1634,7 @@ static void test_cipher_speed(const char *algo, int enc, unsigned int secs,
|
|||||||
|
|
||||||
static void test_available(void)
|
static void test_available(void)
|
||||||
{
|
{
|
||||||
char **name = check;
|
const char **name = check;
|
||||||
|
|
||||||
while (*name) {
|
while (*name) {
|
||||||
printk("alg %s ", *name);
|
printk("alg %s ", *name);
|
||||||
|
Loading…
Reference in New Issue
Block a user