Skip to contentSkip to conversation

KEYS: Remove unused declarations

PATCH In review Yue Haibing 2 participants 2 messages Aug 16, 2023 Keys/keyrings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KEYS: Remove unused declarations

These declarations are never implemented, remove it.

---
 include/keys/dns_resolver-type.h | 4 ----
 include/linux/key.h              | 3 ---
 2 files changed, 7 deletions(-)
include/keys/dns_resolver-type.h +0 -4
index 218ca22fb056..1b89088a2837 100644
@@ -12,8 +12,4 @@
 
 extern struct key_type key_type_dns_resolver;
 
-extern int request_dns_resolver_key(const char *description,
-				    const char *callout_info,
-				    char **data);
-
 #endif /* _KEYS_DNS_RESOLVER_TYPE_H */
include/linux/key.h +0 -3
index 938d7ecfb495..f16deadebca9 100644
@@ -436,9 +436,6 @@ extern key_ref_t keyring_search(key_ref_t keyring,
 				const char *description,
 				bool recurse);
 
-extern int keyring_add_key(struct key *keyring,
-			   struct key *key);
-
 extern int keyring_restrict(key_ref_t keyring, const char *type,
 			    const char *restriction);
 
Signature · 1 line
2.34.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 37 lines · Yue Haibing

These declarations are never implemented, remove it.

---
 include/keys/dns_resolver-type.h | 4 ----
 include/linux/key.h              | 3 ---
 2 files changed, 7 deletions(-)
include/keys/dns_resolver-type.h +0 -4
index 218ca22fb056..1b89088a2837 100644
@@ -12,8 +12,4 @@
 
 extern struct key_type key_type_dns_resolver;
 
-extern int request_dns_resolver_key(const char *description,
-				    const char *callout_info,
-				    char **data);
-
 #endif /* _KEYS_DNS_RESOLVER_TYPE_H */
include/linux/key.h +0 -3
index 938d7ecfb495..f16deadebca9 100644
@@ -436,9 +436,6 @@ extern key_ref_t keyring_search(key_ref_t keyring,
 				const char *description,
 				bool recurse);
 
-extern int keyring_add_key(struct key *keyring,
-			   struct key *key);
-
 extern int keyring_restrict(key_ref_t keyring, const char *type,
 			    const char *restriction);
 
Signature · 1 line
2.34.1

David, can you pick this one?

BR, Jarkko