diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2019-11-08 15:42:13 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-11-17 09:02:44 +0800 |
commit | a9aec4cb39d983bd930c910cd62822a7eb048d69 (patch) | |
tree | 13db70104e7ae0f6e8df6208c821e07d0aa4a746 | |
parent | bd7e9bbebd331b692b6a1cba73fb8424d37a20ce (diff) | |
download | linux-crypto-a9aec4cb39d983bd930c910cd62822a7eb048d69.tar.gz linux-crypto-a9aec4cb39d983bd930c910cd62822a7eb048d69.zip |
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>
-rw-r--r-- | crypto/tcrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index 83ad0b1f..f42f486e 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -65,7 +65,7 @@ static int mode; static u32 num_mb = 8; static char *tvmem[TVMEMSIZE]; -static char *check[] = { +static const char *check[] = { "des", "md5", "des3_ede", "rot13", "sha1", "sha224", "sha256", "sm3", "blowfish", "twofish", "serpent", "sha384", "sha512", "md4", "aes", "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) { - char **name = check; + const char **name = check; while (*name) { printk("alg %s ", *name); |