@@ -33,6 +33,4 @@ struct encrypted_key_payload {
u8 payload_data[0]; /* payload data + datablob + hmac */
};
-extern struct key_type key_type_encrypted;
-
#endif /* _KEYS_ENCRYPTED_TYPE_H */
@@ -1012,7 +1012,7 @@ static void encrypted_destroy(struct key *key)
kzfree(key->payload.data[0]);
}
-struct key_type key_type_encrypted = {
+static struct key_type key_type_encrypted = {
.name = "encrypted",
.instantiate = encrypted_instantiate,
.update = encrypted_update,
@@ -1020,7 +1020,6 @@ struct key_type key_type_encrypted = {
.describe = user_describe,
.read = encrypted_read,
};
-EXPORT_SYMBOL_GPL(key_type_encrypted);
static int __init init_encrypted(void)
{
Now that all users lookup the key type by name, drop the export and the direct module dependency. Cc: Mimi Zohar <zohar@linux.ibm.com> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- include/keys/encrypted-type.h | 2 -- security/keys/encrypted-keys/encrypted.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-)