Commit 2edab5e2e685a384261e6dd32676924feb33dfa8

Authored by Heinrich Schuchardt
Committed by Alexander Graf
1 parent ff401d3f81

efi_loader: make efi_create_handle non-static

Export function efi_create_handle.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>

Showing 2 changed files with 9 additions and 1 deletions Side-by-side Diff

include/efi_loader.h
... ... @@ -192,6 +192,8 @@
192 192 void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map);
193 193 /* Call this to set the current device name */
194 194 void efi_set_bootdev(const char *dev, const char *devnr, const char *path);
  195 +/* Create handle */
  196 +efi_status_t efi_create_handle(void **handle);
195 197 /* Call this to validate a handle and find the EFI object for it */
196 198 struct efi_object *efi_search_obj(void *handle);
197 199 /* Call this to create an event */
lib/efi_loader/efi_boottime.c
... ... @@ -321,7 +321,13 @@
321 321 return EFI_EXIT(r);
322 322 }
323 323  
324   -static efi_status_t efi_create_handle(void **handle)
  324 +/*
  325 + * Create handle.
  326 + *
  327 + * @handle new handle
  328 + * @return status code
  329 + */
  330 +efi_status_t efi_create_handle(void **handle)
325 331 {
326 332 struct efi_object *obj;
327 333 efi_status_t r;