Fix compile error
This commit is contained in:
parent
9be4c45dbe
commit
1e95b56e59
3 changed files with 6 additions and 4 deletions
|
@ -125,7 +125,7 @@ grub_efi_mmap_iterate (grub_memory_hook_t hook, int avoid_efi_boot_services)
|
|||
}
|
||||
|
||||
grub_err_t
|
||||
grub_machine_mmap_iterate (grub_memory_hook_t hook, int avoid_efi_boot_services)
|
||||
grub_machine_mmap_iterate (grub_memory_hook_t hook)
|
||||
{
|
||||
return grub_efi_mmap_iterate (hook, 0);
|
||||
}
|
||||
|
|
|
@ -85,7 +85,4 @@ extern grub_efi_handle_t EXPORT_VAR(grub_efi_image_handle);
|
|||
|
||||
extern int EXPORT_VAR(grub_efi_is_finished);
|
||||
|
||||
grub_err_t
|
||||
grub_efi_mmap_iterate (grub_memory_hook_t hook, int avoid_efi_boot_services);
|
||||
|
||||
#endif /* ! GRUB_EFI_EFI_HEADER */
|
||||
|
|
|
@ -42,6 +42,11 @@ typedef int NESTED_FUNC_ATTR (*grub_memory_hook_t) (grub_uint64_t,
|
|||
|
||||
grub_err_t grub_mmap_iterate (grub_memory_hook_t hook);
|
||||
|
||||
#ifdef GRUB_MACHINE_EFI
|
||||
grub_err_t
|
||||
grub_efi_mmap_iterate (grub_memory_hook_t hook, int avoid_efi_boot_services);
|
||||
#endif
|
||||
|
||||
#if !defined (GRUB_MACHINE_EMU) && !defined (GRUB_MACHINE_EFI)
|
||||
grub_err_t EXPORT_FUNC(grub_machine_mmap_iterate) (grub_memory_hook_t hook);
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue