Commit b3dd14b6b1d4ddfbfbdaa80a6c784cb6c227ef6e

Authored by Heinrich Schuchardt
Committed by Alexander Graf
1 parent 9bfca9f98a

efi_loader: make efi_block_io_guid a global symbol

The GUID of the EFI_BLOCK_IO_PROTOCOL is needed in different code
parts. To avoid duplication make efi_block_io_guid a global symbol.

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

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

include/efi_loader.h
... ... @@ -86,6 +86,8 @@
86 86  
87 87 uint16_t *efi_dp_str(struct efi_device_path *dp);
88 88  
  89 +/* GUID of the EFI_BLOCK_IO_PROTOCOL */
  90 +extern const efi_guid_t efi_block_io_guid;
89 91 extern const efi_guid_t efi_global_variable_guid;
90 92 extern const efi_guid_t efi_guid_console_control;
91 93 extern const efi_guid_t efi_guid_device_path;
lib/efi_loader/efi_disk.c
... ... @@ -14,7 +14,7 @@
14 14 #include <part.h>
15 15 #include <malloc.h>
16 16  
17   -static const efi_guid_t efi_block_io_guid = BLOCK_IO_GUID;
  17 +const efi_guid_t efi_block_io_guid = BLOCK_IO_GUID;
18 18  
19 19 struct efi_disk_obj {
20 20 /* Generic EFI object parent class data */