mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
efi_loader: move efi_search_obj up in code
To avoid a forward declaration move efi_search_obj before all protocol services functions. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
9804d88630
commit
7b9f8ad749
1 changed files with 21 additions and 20 deletions
|
@ -690,6 +690,27 @@ static efi_status_t EFIAPI efi_check_event(struct efi_event *event)
|
|||
return EFI_EXIT(EFI_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
/*
|
||||
* Find the internal EFI object for a handle.
|
||||
*
|
||||
* @handle handle to find
|
||||
* @return EFI object
|
||||
*/
|
||||
static struct efi_object *efi_search_obj(void *handle)
|
||||
{
|
||||
struct list_head *lhandle;
|
||||
|
||||
list_for_each(lhandle, &efi_obj_list) {
|
||||
struct efi_object *efiobj;
|
||||
|
||||
efiobj = list_entry(lhandle, struct efi_object, link);
|
||||
if (efiobj->handle == handle)
|
||||
return efiobj;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Install protocol interface.
|
||||
*
|
||||
|
@ -1355,26 +1376,6 @@ static efi_status_t EFIAPI efi_exit(efi_handle_t image_handle,
|
|||
panic("EFI application exited");
|
||||
}
|
||||
|
||||
/*
|
||||
* Find the internal EFI object for a handle.
|
||||
*
|
||||
* @handle handle to find
|
||||
* @return EFI object
|
||||
*/
|
||||
static struct efi_object *efi_search_obj(void *handle)
|
||||
{
|
||||
struct list_head *lhandle;
|
||||
|
||||
list_for_each(lhandle, &efi_obj_list) {
|
||||
struct efi_object *efiobj;
|
||||
efiobj = list_entry(lhandle, struct efi_object, link);
|
||||
if (efiobj->handle == handle)
|
||||
return efiobj;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Unload an EFI image.
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue