diff options
author | Matthew Garrett <mjg@redhat.com> | 2011-06-06 15:36:24 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-06-06 16:30:27 -0400 |
commit | f7a2d73fe75c71941fb0a6b4d8fe7da8144f2c7b (patch) | |
tree | 120130e3d73c06b1bf84418be530daeb3a84f820 | |
parent | 59c5f46fbe01a00eedf54a23789634438bb80603 (diff) |
x86, efi: Fix argument types for SetVariable()
The spec says this takes uint32 for attributes, not uintn.
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Link: http://lkml.kernel.org/r/1307388985-7852-1-git-send-email-mjg@redhat.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r-- | arch/x86/platform/efi/efi.c | 2 | ||||
-rw-r--r-- | include/linux/efi.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 0d3a4fa34560..f4f6de987b7b 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c | |||
@@ -122,7 +122,7 @@ static efi_status_t virt_efi_get_next_variable(unsigned long *name_size, | |||
122 | 122 | ||
123 | static efi_status_t virt_efi_set_variable(efi_char16_t *name, | 123 | static efi_status_t virt_efi_set_variable(efi_char16_t *name, |
124 | efi_guid_t *vendor, | 124 | efi_guid_t *vendor, |
125 | unsigned long attr, | 125 | u32 attr, |
126 | unsigned long data_size, | 126 | unsigned long data_size, |
127 | void *data) | 127 | void *data) |
128 | { | 128 | { |
diff --git a/include/linux/efi.h b/include/linux/efi.h index e376270cd26e..0758753a17a1 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
@@ -168,7 +168,7 @@ typedef efi_status_t efi_get_variable_t (efi_char16_t *name, efi_guid_t *vendor, | |||
168 | typedef efi_status_t efi_get_next_variable_t (unsigned long *name_size, efi_char16_t *name, | 168 | typedef efi_status_t efi_get_next_variable_t (unsigned long *name_size, efi_char16_t *name, |
169 | efi_guid_t *vendor); | 169 | efi_guid_t *vendor); |
170 | typedef efi_status_t efi_set_variable_t (efi_char16_t *name, efi_guid_t *vendor, | 170 | typedef efi_status_t efi_set_variable_t (efi_char16_t *name, efi_guid_t *vendor, |
171 | unsigned long attr, unsigned long data_size, | 171 | u32 attr, unsigned long data_size, |
172 | void *data); | 172 | void *data); |
173 | typedef efi_status_t efi_get_next_high_mono_count_t (u32 *count); | 173 | typedef efi_status_t efi_get_next_high_mono_count_t (u32 *count); |
174 | typedef void efi_reset_system_t (int reset_type, efi_status_t status, | 174 | typedef void efi_reset_system_t (int reset_type, efi_status_t status, |