crypto: ccree - Make cc_sec_disable static
authorYueHaibing <yuehaibing@huawei.com>
Fri, 26 Apr 2019 16:43:13 +0000 (00:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 May 2019 06:03:30 +0000 (14:03 +0800)
Fix sparse warning:

drivers/crypto/ccree/cc_driver.c:37:6: warning:
 symbol 'cc_sec_disable' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccree/cc_driver.c

index 902f196..4ea8e19 100644 (file)
@@ -34,7 +34,7 @@ bool cc_dump_bytes;
 module_param_named(dump_bytes, cc_dump_bytes, bool, 0600);
 MODULE_PARM_DESC(cc_dump_bytes, "Dump buffers to kernel log as debugging aid");
 
-bool cc_sec_disable;
+static bool cc_sec_disable;
 module_param_named(sec_disable, cc_sec_disable, bool, 0600);
 MODULE_PARM_DESC(cc_sec_disable, "Disable security functions");