[-next] KEYS: Remove unused declarations

Message ID 20230816131122.43240-1-yuehaibing@huawei.com
State New
Headers
Series [-next] KEYS: Remove unused declarations |

Commit Message

Yue Haibing Aug. 16, 2023, 1:11 p.m. UTC
  These declarations are never implemented, remove it.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
 include/keys/dns_resolver-type.h | 4 ----
 include/linux/key.h              | 3 ---
 2 files changed, 7 deletions(-)
  

Comments

Jarkko Sakkinen Aug. 16, 2023, 9:06 p.m. UTC | #1
On Wed Aug 16, 2023 at 4:11 PM EEST, Yue Haibing wrote:
> These declarations are never implemented, remove it.
>
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> ---
>  include/keys/dns_resolver-type.h | 4 ----
>  include/linux/key.h              | 3 ---
>  2 files changed, 7 deletions(-)
>
> diff --git a/include/keys/dns_resolver-type.h b/include/keys/dns_resolver-type.h
> index 218ca22fb056..1b89088a2837 100644
> --- a/include/keys/dns_resolver-type.h
> +++ b/include/keys/dns_resolver-type.h
> @@ -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 */
> diff --git a/include/linux/key.h b/include/linux/key.h
> index 938d7ecfb495..f16deadebca9 100644
> --- a/include/linux/key.h
> +++ b/include/linux/key.h
> @@ -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);
>  
> -- 
> 2.34.1

Acked-by: Jarkko Sakkinen <jarkko@kernel.org>

David, can you pick this one?

BR, Jarkko
  

Patch

diff --git a/include/keys/dns_resolver-type.h b/include/keys/dns_resolver-type.h
index 218ca22fb056..1b89088a2837 100644
--- a/include/keys/dns_resolver-type.h
+++ b/include/keys/dns_resolver-type.h
@@ -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 */
diff --git a/include/linux/key.h b/include/linux/key.h
index 938d7ecfb495..f16deadebca9 100644
--- a/include/linux/key.h
+++ b/include/linux/key.h
@@ -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);