Skip to content

Commit 03acb9c

Browse files
YueHaibingjarkkojs
authored andcommitted
keys: Remove unused extern declarations
Since commit b2a4df2 ("KEYS: Expand the capacity of a keyring") iterate_over_keyring() is never used, so can be removed. And commit b5f545c ("[PATCH] keys: Permit running process to instantiate keys") left behind keyring_search_instkey(). Fixes: b2a4df2 ("KEYS: Expand the capacity of a keyring") Fixes: b5f545c ("[PATCH] keys: Permit running process to instantiate keys") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Paul Moore <paul@paul-moore.com> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
1 parent 3edc226 commit 03acb9c

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

security/keys/internal.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,6 @@ extern void __key_link_end(struct key *keyring,
109109
extern key_ref_t find_key_to_update(key_ref_t keyring_ref,
110110
const struct keyring_index_key *index_key);
111111

112-
extern struct key *keyring_search_instkey(struct key *keyring,
113-
key_serial_t target_id);
114-
115-
extern int iterate_over_keyring(const struct key *keyring,
116-
int (*func)(const struct key *key, void *data),
117-
void *data);
118-
119112
struct keyring_search_context {
120113
struct keyring_index_key index_key;
121114
const struct cred *cred;

0 commit comments

Comments
 (0)