diff mbox series

[v2,-next] keys: Remove unused extern declarations

Message ID 20230724144717.23660-1-yuehaibing@huawei.com (mailing list archive)
State Handled Elsewhere
Headers show
Series [v2,-next] keys: Remove unused extern declarations | expand

Commit Message

Yue Haibing July 24, 2023, 2:47 p.m. UTC
Since commit b2a4df200d57 ("KEYS: Expand the capacity of a keyring")
iterate_over_keyring() is never used, so can be removed.

And commit b5f545c880a2 ("[PATCH] keys: Permit running process to instantiate keys")
left behind keyring_search_instkey().

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
v2: Also remove keyring_search_instkey()
---
 security/keys/internal.h | 7 -------
 1 file changed, 7 deletions(-)

Comments

Jarkko Sakkinen July 28, 2023, 6:55 p.m. UTC | #1
On Mon Jul 24, 2023 at 2:47 PM UTC, YueHaibing wrote:
> Since commit b2a4df200d57 ("KEYS: Expand the capacity of a keyring")
> iterate_over_keyring() is never used, so can be removed.
>
> And commit b5f545c880a2 ("[PATCH] keys: Permit running process to instantiate keys")
> left behind keyring_search_instkey().
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Please use the fixes tag properly.

> ---
> v2: Also remove keyring_search_instkey()
> ---
>  security/keys/internal.h | 7 -------
>  1 file changed, 7 deletions(-)
>
> diff --git a/security/keys/internal.h b/security/keys/internal.h
> index 3c1e7122076b..471cf36dedc0 100644
> --- a/security/keys/internal.h
> +++ b/security/keys/internal.h
> @@ -109,13 +109,6 @@ extern void __key_link_end(struct key *keyring,
>  extern key_ref_t find_key_to_update(key_ref_t keyring_ref,
>  				    const struct keyring_index_key *index_key);
>  
> -extern struct key *keyring_search_instkey(struct key *keyring,
> -					  key_serial_t target_id);
> -
> -extern int iterate_over_keyring(const struct key *keyring,
> -				int (*func)(const struct key *key, void *data),
> -				void *data);
> -
>  struct keyring_search_context {
>  	struct keyring_index_key index_key;
>  	const struct cred	*cred;
> -- 
> 2.34.1


BR, Jarkko
Yue Haibing July 29, 2023, 2:40 a.m. UTC | #2
On 2023/7/29 2:55, Jarkko Sakkinen wrote:
> On Mon Jul 24, 2023 at 2:47 PM UTC, YueHaibing wrote:
>> Since commit b2a4df200d57 ("KEYS: Expand the capacity of a keyring")
>> iterate_over_keyring() is never used, so can be removed.
>>
>> And commit b5f545c880a2 ("[PATCH] keys: Permit running process to instantiate keys")
>> left behind keyring_search_instkey().
>>
>> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> 
> Please use the fixes tag properly.

OK, will add fixes tag in v3.
> 
>> ---
>> v2: Also remove keyring_search_instkey()
>> ---
>>  security/keys/internal.h | 7 -------
>>  1 file changed, 7 deletions(-)
>>
>> diff --git a/security/keys/internal.h b/security/keys/internal.h
>> index 3c1e7122076b..471cf36dedc0 100644
>> --- a/security/keys/internal.h
>> +++ b/security/keys/internal.h
>> @@ -109,13 +109,6 @@ extern void __key_link_end(struct key *keyring,
>>  extern key_ref_t find_key_to_update(key_ref_t keyring_ref,
>>  				    const struct keyring_index_key *index_key);
>>  
>> -extern struct key *keyring_search_instkey(struct key *keyring,
>> -					  key_serial_t target_id);
>> -
>> -extern int iterate_over_keyring(const struct key *keyring,
>> -				int (*func)(const struct key *key, void *data),
>> -				void *data);
>> -
>>  struct keyring_search_context {
>>  	struct keyring_index_key index_key;
>>  	const struct cred	*cred;
>> -- 
>> 2.34.1
> 
> 
> BR, Jarkko
> .
>
diff mbox series

Patch

diff --git a/security/keys/internal.h b/security/keys/internal.h
index 3c1e7122076b..471cf36dedc0 100644
--- a/security/keys/internal.h
+++ b/security/keys/internal.h
@@ -109,13 +109,6 @@  extern void __key_link_end(struct key *keyring,
 extern key_ref_t find_key_to_update(key_ref_t keyring_ref,
 				    const struct keyring_index_key *index_key);
 
-extern struct key *keyring_search_instkey(struct key *keyring,
-					  key_serial_t target_id);
-
-extern int iterate_over_keyring(const struct key *keyring,
-				int (*func)(const struct key *key, void *data),
-				void *data);
-
 struct keyring_search_context {
 	struct keyring_index_key index_key;
 	const struct cred	*cred;