PKCS#7: fix sparse non static symbol warning
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 28 Jul 2014 13:17:12 +0000 (21:17 +0800)
committerDavid Howells <dhowells@redhat.com>
Mon, 28 Jul 2014 13:55:54 +0000 (14:55 +0100)
Fixes the following sparse warnings:

crypto/asymmetric_keys/pkcs7_key_type.c:73:17: warning:
 symbol 'key_type_pkcs7' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David Howells <dhowells@redhat.com>
crypto/asymmetric_keys/pkcs7_key_type.c

index 197ecdc0a5a1b14e1e746baaae9dbd9bce30f024..3de5fb011de0b3b64e0dfde2b2c6d17c631dd3d1 100644 (file)
@@ -70,7 +70,7 @@ error:
  * user defined keys take an arbitrary string as the description and an
  * arbitrary blob of data as the payload
  */
-struct key_type key_type_pkcs7 = {
+static struct key_type key_type_pkcs7 = {
        .name                   = "pkcs7_test",
        .def_lookup_type        = KEYRING_SEARCH_LOOKUP_DIRECT,
        .preparse               = pkcs7_preparse,