Skip to content

Commit

Permalink
PKCS#7: fix sparse non static symbol warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David Howells <[email protected]>
  • Loading branch information
Wei Yongjun authored and dhowells committed Jul 28, 2014
1 parent b64cc5f commit 63d2551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/asymmetric_keys/pkcs7_key_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
* 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,
Expand Down

0 comments on commit 63d2551

Please sign in to comment.