]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
crypto: cryptd - make cryptd_max_cpu_qlen module parameter static
authorColin Ian King <colin.king@canonical.com>
Thu, 30 Nov 2017 11:26:14 +0000 (11:26 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 11 Dec 2017 11:36:58 +0000 (22:36 +1100)
The cryptd_max_cpu_qlen module parameter is local to the source and does
not need to be in global scope, so make it static.

Cleans up sparse warning:
crypto/cryptd.c:35:14: warning: symbol 'cryptd_max_cpu_qlen' was not
declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cryptd.c

index b1eb131c0f109a3617fa4ce14d4b433567a08a90..552e3a86e8299fbc665159a31f1612e58e857851 100644 (file)
@@ -32,7 +32,7 @@
 #include <linux/sched.h>
 #include <linux/slab.h>
 
-unsigned int cryptd_max_cpu_qlen = 1000;
+static unsigned int cryptd_max_cpu_qlen = 1000;
 module_param(cryptd_max_cpu_qlen, uint, 0);
 MODULE_PARM_DESC(cryptd_max_cpu_qlen, "Set cryptd Max queue depth");