[U-Boot,1/2] efi_loader: export efi_locate_handle() function

Message ID 20181107004434.31491-1-takahiro.akashi@linaro.org
State New
Delegated to: Alexander Graf
Headers show
Series
  • [U-Boot,1/2] efi_loader: export efi_locate_handle() function
Related show

Commit Message

AKASHI Takahiro Nov. 7, 2018, 12:44 a.m.
This function will be used later to implement efi_disk_update().

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
---
 include/efi_loader.h          | 4 ++++
 lib/efi_loader/efi_boottime.c | 7 +++----
 2 files changed, 7 insertions(+), 4 deletions(-)

Patch

diff --git a/include/efi_loader.h b/include/efi_loader.h
index ce0f420b5004..5cc3bded03fa 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -318,6 +318,10 @@  efi_status_t efi_create_handle(efi_handle_t *handle);
 void efi_delete_handle(efi_handle_t obj);
 /* Call this to validate a handle and find the EFI object for it */
 struct efi_object *efi_search_obj(const efi_handle_t handle);
+/* locate handles */
+efi_status_t efi_locate_handle(enum efi_locate_search_type search_type,
+			       const efi_guid_t *protocol, void *search_key,
+			       efi_uintn_t *buffer_size, efi_handle_t *buffer);
 /* Find a protocol on a handle */
 efi_status_t efi_search_protocol(const efi_handle_t handle,
 				 const efi_guid_t *protocol_guid,
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 8a43a5a84091..a3c56bbab552 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -1309,10 +1309,9 @@  static int efi_search(enum efi_locate_search_type search_type,
  *
  * Return: status code
  */
-static efi_status_t efi_locate_handle(
-			enum efi_locate_search_type search_type,
-			const efi_guid_t *protocol, void *search_key,
-			efi_uintn_t *buffer_size, efi_handle_t *buffer)
+efi_status_t efi_locate_handle(enum efi_locate_search_type search_type,
+			       const efi_guid_t *protocol, void *search_key,
+			       efi_uintn_t *buffer_size, efi_handle_t *buffer)
 {
 	struct efi_object *efiobj;
 	efi_uintn_t size = 0;