Skip to content

Commit a42831f

Browse files
hfreudehcahca
authored andcommitted
s390/uv: Remove uv_get_secret_metadata function
The uv_get_secret_metadata() in-kernel function was only offered and used by the pkey uv handler. Remove it as there is no customer any more. Suggested-by: Steffen Eiden <[email protected]> Signed-off-by: Harald Freudenberger <[email protected]> Reviewed-by: Steffen Eiden <[email protected]> Acked-by: Holger Dengler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Heiko Carstens <[email protected]>
1 parent 1bd4793 commit a42831f

File tree

2 files changed

+0
-32
lines changed

2 files changed

+0
-32
lines changed

arch/s390/include/asm/uv.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,8 +619,6 @@ static inline int uv_remove_shared(unsigned long addr)
619619
int uv_find_secret(const u8 secret_id[UV_SECRET_ID_LEN],
620620
struct uv_secret_list *list,
621621
struct uv_secret_list_item_hdr *secret);
622-
int uv_get_secret_metadata(const u8 secret_id[UV_SECRET_ID_LEN],
623-
struct uv_secret_list_item_hdr *secret);
624622
int uv_retrieve_secret(u16 secret_idx, u8 *buf, size_t buf_size);
625623

626624
extern int prot_virt_host;

arch/s390/kernel/uv.c

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -840,36 +840,6 @@ int uv_find_secret(const u8 secret_id[UV_SECRET_ID_LEN],
840840
}
841841
EXPORT_SYMBOL_GPL(uv_find_secret);
842842

843-
/**
844-
* uv_get_secret_metadata() - get secret metadata for a given secret id.
845-
* @secret_id: search pattern.
846-
* @secret: output data, containing the secret's metadata.
847-
*
848-
* Search for a secret with the given secret_id in the Ultravisor secret store.
849-
*
850-
* Context: might sleep.
851-
*
852-
* Return:
853-
* * %0: - Found entry; secret->idx and secret->type are valid.
854-
* * %ENOENT - No entry found.
855-
* * %ENODEV: - Not supported: UV not available or command not available.
856-
* * %EIO: - Other unexpected UV error.
857-
*/
858-
int uv_get_secret_metadata(const u8 secret_id[UV_SECRET_ID_LEN],
859-
struct uv_secret_list_item_hdr *secret)
860-
{
861-
struct uv_secret_list *buf;
862-
int rc;
863-
864-
buf = kzalloc(sizeof(*buf), GFP_KERNEL);
865-
if (!buf)
866-
return -ENOMEM;
867-
rc = uv_find_secret(secret_id, buf, secret);
868-
kfree(buf);
869-
return rc;
870-
}
871-
EXPORT_SYMBOL_GPL(uv_get_secret_metadata);
872-
873843
/**
874844
* uv_retrieve_secret() - get the secret value for the secret index.
875845
* @secret_idx: Secret index for which the secret should be retrieved.

0 commit comments

Comments
 (0)