Commit a14198df authored by Ard Biesheuvel's avatar Ard Biesheuvel

efi/runtime-wrappers: Clean up white space and add __init annotation

Some cosmetic changes as well as a missing __init annotation.
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 5894cf57
...@@ -436,9 +436,8 @@ static efi_status_t virt_efi_set_variable(efi_char16_t *name, ...@@ -436,9 +436,8 @@ static efi_status_t virt_efi_set_variable(efi_char16_t *name,
} }
static efi_status_t static efi_status_t
virt_efi_set_variable_nonblocking(efi_char16_t *name, efi_guid_t *vendor, virt_efi_set_variable_nb(efi_char16_t *name, efi_guid_t *vendor, u32 attr,
u32 attr, unsigned long data_size, unsigned long data_size, void *data)
void *data)
{ {
efi_status_t status; efi_status_t status;
...@@ -471,10 +470,8 @@ static efi_status_t virt_efi_query_variable_info(u32 attr, ...@@ -471,10 +470,8 @@ static efi_status_t virt_efi_query_variable_info(u32 attr,
} }
static efi_status_t static efi_status_t
virt_efi_query_variable_info_nonblocking(u32 attr, virt_efi_query_variable_info_nb(u32 attr, u64 *storage_space,
u64 *storage_space, u64 *remaining_space, u64 *max_variable_size)
u64 *remaining_space,
u64 *max_variable_size)
{ {
efi_status_t status; efi_status_t status;
...@@ -556,7 +553,7 @@ static efi_status_t virt_efi_query_capsule_caps(efi_capsule_header_t **capsules, ...@@ -556,7 +553,7 @@ static efi_status_t virt_efi_query_capsule_caps(efi_capsule_header_t **capsules,
return status; return status;
} }
void efi_native_runtime_setup(void) void __init efi_native_runtime_setup(void)
{ {
efi.get_time = virt_efi_get_time; efi.get_time = virt_efi_get_time;
efi.set_time = virt_efi_set_time; efi.set_time = virt_efi_set_time;
...@@ -565,11 +562,11 @@ void efi_native_runtime_setup(void) ...@@ -565,11 +562,11 @@ void efi_native_runtime_setup(void)
efi.get_variable = virt_efi_get_variable; efi.get_variable = virt_efi_get_variable;
efi.get_next_variable = virt_efi_get_next_variable; efi.get_next_variable = virt_efi_get_next_variable;
efi.set_variable = virt_efi_set_variable; efi.set_variable = virt_efi_set_variable;
efi.set_variable_nonblocking = virt_efi_set_variable_nonblocking; efi.set_variable_nonblocking = virt_efi_set_variable_nb;
efi.get_next_high_mono_count = virt_efi_get_next_high_mono_count; efi.get_next_high_mono_count = virt_efi_get_next_high_mono_count;
efi.reset_system = virt_efi_reset_system; efi.reset_system = virt_efi_reset_system;
efi.query_variable_info = virt_efi_query_variable_info; efi.query_variable_info = virt_efi_query_variable_info;
efi.query_variable_info_nonblocking = virt_efi_query_variable_info_nonblocking; efi.query_variable_info_nonblocking = virt_efi_query_variable_info_nb;
efi.update_capsule = virt_efi_update_capsule; efi.update_capsule = virt_efi_update_capsule;
efi.query_capsule_caps = virt_efi_query_capsule_caps; efi.query_capsule_caps = virt_efi_query_capsule_caps;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment