modify data types in efi.h
PATCH 1/1 modify data types in efi.h
David, Bjorn,
Here's a small patch against 2.6.0-test2 to change several data types from u64 to unsigned long in efi.h. These changes enable the use of the same data structures and function prototypes for ia32 EFI kernels. Comments?
Please apply...
thanks,
matt
arch/ia64/kernel/efi.c +2 -2
@@ -140,7 +140,7 @@#define STUB_SET_VARIABLE (prefix, adjust_arg) \ static efi_status_t \ -prefix##_set_variable (efi_char16_t *name, efi_guid_t *vendor, u32 attr, \ +prefix##_set_variable (efi_char16_t *name, efi_guid_t *vendor, unsigned long attr, \ unsigned long data_size, void *data) \ { \ struct ia64_fpreg fr[6]; \
@@ -156,7 +156,7 @@#define STUB_GET_NEXT_HIGH_MONO_COUNT (prefix, adjust_arg) \ static efi_status_t \ -prefix##_get_next_high_mono_count (u64 *count) \ +prefix##_get_next_high_mono_count (u32 *count) \ { \ struct ia64_fpreg fr[6]; \ efi_status_t ret; \
include/linux/efi.h +34 -33
104 lines not on this page · raw message
Linus,
Would you mind applying the attached patch (it touches include/linux/efi.h, so I'd rather not put it in my regular ia64 tree).
Thanks,
--david
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Matt Tolentino
Matt> Here's a small patch against 2.6.0-test2 to change several Matt> data types from u64 to unsigned long in efi.h. These changes Matt> enable the use of the same data structures and function Matt> prototypes for ia32 EFI kernels. Comments?
Matt> Please apply...
arch/ia64/kernel/efi.c +2 -2
@@ -140,7 +140,7 @@#define STUB_SET_VARIABLE (prefix, adjust_arg) \ static efi_status_t \ -prefix##_set_variable (efi_char16_t *name, efi_guid_t *vendor, u32 attr, \ +prefix##_set_variable (efi_char16_t *name, efi_guid_t *vendor, unsigned long attr, \ unsigned long data_size, void *data) \ { \ struct ia64_fpreg fr[6]; \
@@ -156,7 +156,7 @@#define STUB_GET_NEXT_HIGH_MONO_COUNT (prefix, adjust_arg) \ static efi_status_t \ -prefix##_get_next_high_mono_count (u64 *count) \ +prefix##_get_next_high_mono_count (u32 *count) \ { \ struct ia64_fpreg fr[6]; \ efi_status_t ret; \
include/linux/efi.h +34 -33
104 lines not on this page · raw message