Skip to content

Commit

Permalink
crypto: cryptd - make cryptd_max_cpu_qlen module parameter static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Colin Ian King authored and herbertx committed Dec 11, 2017
1 parent 761a698 commit eaf356e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/cryptd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit eaf356e

Please sign in to comment.