diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-30 06:26:14 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-12-11 06:36:58 -0500 |
commit | eaf356e4be27abcc3b741a3dd7e9bd530390c607 (patch) | |
tree | 7ef94cc0609ac5bc32da6f4e6a107568110e4eec /crypto/cryptd.c | |
parent | 761a6982198cf117686027377184e1513cba7e45 (diff) |
crypto: cryptd - make cryptd_max_cpu_qlen module parameter static
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>
Diffstat (limited to 'crypto/cryptd.c')
-rw-r--r-- | crypto/cryptd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c index b1eb131c0f10..552e3a86e829 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <linux/sched.h> | 32 | #include <linux/sched.h> |
33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
34 | 34 | ||
35 | unsigned int cryptd_max_cpu_qlen = 1000; | 35 | static unsigned int cryptd_max_cpu_qlen = 1000; |
36 | module_param(cryptd_max_cpu_qlen, uint, 0); | 36 | module_param(cryptd_max_cpu_qlen, uint, 0); |
37 | MODULE_PARM_DESC(cryptd_max_cpu_qlen, "Set cryptd Max queue depth"); | 37 | MODULE_PARM_DESC(cryptd_max_cpu_qlen, "Set cryptd Max queue depth"); |
38 | 38 | ||