diff options
author | Harald Freudenberger <freude@linux.ibm.com> | 2025-04-24 15:36:17 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2025-04-30 11:34:03 +0200 |
commit | a42831f0b74dccaaeedc7f420a43b93b952fdf0c (patch) | |
tree | d455b1f0796a76a9a2aaebed6d159ae8e3a5dfa6 | |
parent | 1bd4793728c3d83452daf5ae2a6d22a9711070c3 (diff) |
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 <seiden@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Steffen Eiden <seiden@linux.ibm.com>
Acked-by: Holger Dengler <dengler@linux.ibm.com>
Link: https://lore.kernel.org/r/20250424133619.16495-24-freude@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
-rw-r--r-- | arch/s390/include/asm/uv.h | 2 | ||||
-rw-r--r-- | arch/s390/kernel/uv.c | 30 |
2 files changed, 0 insertions, 32 deletions
diff --git a/arch/s390/include/asm/uv.h b/arch/s390/include/asm/uv.h index 7f53fe755f3f..b008402ec9aa 100644 --- a/arch/s390/include/asm/uv.h +++ b/arch/s390/include/asm/uv.h @@ -619,8 +619,6 @@ static inline int uv_remove_shared(unsigned long addr) int uv_find_secret(const u8 secret_id[UV_SECRET_ID_LEN], struct uv_secret_list *list, struct uv_secret_list_item_hdr *secret); -int uv_get_secret_metadata(const u8 secret_id[UV_SECRET_ID_LEN], - struct uv_secret_list_item_hdr *secret); int uv_retrieve_secret(u16 secret_idx, u8 *buf, size_t buf_size); extern int prot_virt_host; diff --git a/arch/s390/kernel/uv.c b/arch/s390/kernel/uv.c index faac43359e23..4ab0b6b4866e 100644 --- a/arch/s390/kernel/uv.c +++ b/arch/s390/kernel/uv.c @@ -841,36 +841,6 @@ int uv_find_secret(const u8 secret_id[UV_SECRET_ID_LEN], EXPORT_SYMBOL_GPL(uv_find_secret); /** - * uv_get_secret_metadata() - get secret metadata for a given secret id. - * @secret_id: search pattern. - * @secret: output data, containing the secret's metadata. - * - * Search for a secret with the given secret_id in the Ultravisor secret store. - * - * Context: might sleep. - * - * Return: - * * %0: - Found entry; secret->idx and secret->type are valid. - * * %ENOENT - No entry found. - * * %ENODEV: - Not supported: UV not available or command not available. - * * %EIO: - Other unexpected UV error. - */ -int uv_get_secret_metadata(const u8 secret_id[UV_SECRET_ID_LEN], - struct uv_secret_list_item_hdr *secret) -{ - struct uv_secret_list *buf; - int rc; - - buf = kzalloc(sizeof(*buf), GFP_KERNEL); - if (!buf) - return -ENOMEM; - rc = uv_find_secret(secret_id, buf, secret); - kfree(buf); - return rc; -} -EXPORT_SYMBOL_GPL(uv_get_secret_metadata); - -/** * uv_retrieve_secret() - get the secret value for the secret index. * @secret_idx: Secret index for which the secret should be retrieved. * @buf: Buffer to store retrieved secret. |