projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d95312a
)
crypto: tcrypt - constify check alg list
author
Corentin Labbe
<clabbe@baylibre.com>
Fri, 8 Nov 2019 15:42:13 +0000
(15:42 +0000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:44 +0000
(09:02 +0800)
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>
crypto/tcrypt.c
patch
|
blob
|
history
diff --git
a/crypto/tcrypt.c
b/crypto/tcrypt.c
index 83ad0b1fab30a5f591dbfbc6f44fb9f39ccc8052..f42f486e90e8a260615ad924709437b73b50f803 100644
(file)
--- 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 c
onst c
har *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;
+ c
onst c
har **name = check;
while (*name) {
printk("alg %s ", *name);