Commit 63d2551e authored by Wei Yongjun's avatar Wei Yongjun Committed by David Howells

PKCS#7: fix sparse non static symbol warning

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent b64cc5fb
...@@ -70,7 +70,7 @@ static int pkcs7_preparse(struct key_preparsed_payload *prep) ...@@ -70,7 +70,7 @@ static int pkcs7_preparse(struct key_preparsed_payload *prep)
* user defined keys take an arbitrary string as the description and an * user defined keys take an arbitrary string as the description and an
* arbitrary blob of data as the payload * arbitrary blob of data as the payload
*/ */
struct key_type key_type_pkcs7 = { static struct key_type key_type_pkcs7 = {
.name = "pkcs7_test", .name = "pkcs7_test",
.def_lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT, .def_lookup_type = KEYRING_SEARCH_LOOKUP_DIRECT,
.preparse = pkcs7_preparse, .preparse = pkcs7_preparse,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment