mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-28 10:10:29 +00:00
efi: Make all grub_efi_guid_t variables static
This is believed to result in smaller code. Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
01d1953fc5
commit
dbc641ac92
5 files changed
+8
-8
No files matched your search
@@ -36,7 +36,7 @@ grub_cmd_fwsetup (grub_command_t cmd __attribute__ ((unused)),
|
|||||||
grub_efi_uint64_t os_indications = GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
|
grub_efi_uint64_t os_indications = GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI;
|
||||||
grub_err_t status;
|
grub_err_t status;
|
||||||
grub_size_t oi_size;
|
grub_size_t oi_size;
|
||||||
grub_efi_guid_t global = GRUB_EFI_GLOBAL_VARIABLE_GUID;
|
static grub_efi_guid_t global = GRUB_EFI_GLOBAL_VARIABLE_GUID;
|
||||||
|
|
||||||
grub_efi_get_variable ("OsIndications", &global, &oi_size,
|
grub_efi_get_variable ("OsIndications", &global, &oi_size,
|
||||||
(void **) &old_os_indications);
|
(void **) &old_os_indications);
|
||||||
@@ -63,7 +63,7 @@ efifwsetup_is_supported (void)
|
|||||||
{
|
{
|
||||||
grub_efi_uint64_t *os_indications_supported = NULL;
|
grub_efi_uint64_t *os_indications_supported = NULL;
|
||||||
grub_size_t oi_size = 0;
|
grub_size_t oi_size = 0;
|
||||||
grub_efi_guid_t global = GRUB_EFI_GLOBAL_VARIABLE_GUID;
|
static grub_efi_guid_t global = GRUB_EFI_GLOBAL_VARIABLE_GUID;
|
||||||
grub_efi_boolean_t ret = 0;
|
grub_efi_boolean_t ret = 0;
|
||||||
|
|
||||||
grub_efi_get_variable ("OsIndicationsSupported", &global, &oi_size,
|
grub_efi_get_variable ("OsIndicationsSupported", &global, &oi_size,
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ grub_machine_efiemu_init_tables (void)
|
|||||||
{
|
{
|
||||||
void *table;
|
void *table;
|
||||||
grub_err_t err;
|
grub_err_t err;
|
||||||
grub_efi_guid_t smbios = GRUB_EFI_SMBIOS_TABLE_GUID;
|
static grub_efi_guid_t smbios = GRUB_EFI_SMBIOS_TABLE_GUID;
|
||||||
grub_efi_guid_t acpi20 = GRUB_EFI_ACPI_20_TABLE_GUID;
|
static grub_efi_guid_t acpi20 = GRUB_EFI_ACPI_20_TABLE_GUID;
|
||||||
grub_efi_guid_t acpi = GRUB_EFI_ACPI_TABLE_GUID;
|
static grub_efi_guid_t acpi = GRUB_EFI_ACPI_TABLE_GUID;
|
||||||
|
|
||||||
err = grub_efiemu_unregister_configuration_table (smbios);
|
err = grub_efiemu_unregister_configuration_table (smbios);
|
||||||
if (err)
|
if (err)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ void *
|
|||||||
grub_efi_get_firmware_fdt (void)
|
grub_efi_get_firmware_fdt (void)
|
||||||
{
|
{
|
||||||
grub_efi_configuration_table_t *tables;
|
grub_efi_configuration_table_t *tables;
|
||||||
grub_efi_guid_t fdt_guid = GRUB_EFI_DEVICE_TREE_GUID;
|
static grub_efi_guid_t fdt_guid = GRUB_EFI_DEVICE_TREE_GUID;
|
||||||
void *firmware_fdt = NULL;
|
void *firmware_fdt = NULL;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ grub_err_t
|
|||||||
grub_fdt_install (void)
|
grub_fdt_install (void)
|
||||||
{
|
{
|
||||||
grub_efi_boot_services_t *b;
|
grub_efi_boot_services_t *b;
|
||||||
grub_efi_guid_t fdt_guid = GRUB_EFI_DEVICE_TREE_GUID;
|
static grub_efi_guid_t fdt_guid = GRUB_EFI_DEVICE_TREE_GUID;
|
||||||
grub_efi_status_t status;
|
grub_efi_status_t status;
|
||||||
|
|
||||||
b = grub_efi_system_table->boot_services;
|
b = grub_efi_system_table->boot_services;
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ grub_console_getkeystatus (struct grub_term_input *term)
|
|||||||
static grub_err_t
|
static grub_err_t
|
||||||
grub_efi_console_input_init (struct grub_term_input *term)
|
grub_efi_console_input_init (struct grub_term_input *term)
|
||||||
{
|
{
|
||||||
grub_efi_guid_t text_input_ex_guid =
|
static grub_efi_guid_t text_input_ex_guid =
|
||||||
GRUB_EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL_GUID;
|
GRUB_EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL_GUID;
|
||||||
|
|
||||||
if (grub_efi_is_finished)
|
if (grub_efi_is_finished)
|
||||||
|
|||||||
Reference in new issue
Block a user