File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -619,8 +619,6 @@ static inline int uv_remove_shared(unsigned long addr)
619
619
int uv_find_secret (const u8 secret_id [UV_SECRET_ID_LEN ],
620
620
struct uv_secret_list * list ,
621
621
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 );
624
622
int uv_retrieve_secret (u16 secret_idx , u8 * buf , size_t buf_size );
625
623
626
624
extern int prot_virt_host ;
Original file line number Diff line number Diff line change @@ -840,36 +840,6 @@ int uv_find_secret(const u8 secret_id[UV_SECRET_ID_LEN],
840
840
}
841
841
EXPORT_SYMBOL_GPL (uv_find_secret );
842
842
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
-
873
843
/**
874
844
* uv_retrieve_secret() - get the secret value for the secret index.
875
845
* @secret_idx: Secret index for which the secret should be retrieved.
You can’t perform that action at this time.
0 commit comments