History

efi: Fix efi_loaded_image_t::unload type

The ::unload field is a function pointer, so it should be u32 for 32-bit, u64 for 64-bit. Add a prototype for it in the native efi_loaded_image_t type. Also change type of parent_handle and device_handle from void * to efi_handle_t for documentation purposes. The unload method is not used, so no functional change.

Arvind Sankar committed 6 years ago

Commit 9fa76ca1 parent ff397be1 file · +5 −5Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/efi.h+5−5
@@ -824,7 +824,7 @@ typedef struct { · 823 unmodified lines
824824 __aligned_u64 image_size;
825825 unsigned int image_code_type;
826826 unsigned int image_data_type;
827− unsigned long unload;
827+ u32 unload;
828828 } efi_loaded_image_32_t;
829829
830830 typedef struct {
@@ -840,14 +840,14 @@ typedef struct { · 9 unmodified lines
840840 __aligned_u64 image_size;
841841 unsigned int image_code_type;
842842 unsigned int image_data_type;
843− unsigned long unload;
843+ u64 unload;
844844 } efi_loaded_image_64_t;
845845
846846 typedef struct {
847847 u32 revision;
848− void *parent_handle;
848+ efi_handle_t parent_handle;
849849 efi_system_table_t *system_table;
850− void *device_handle;
850+ efi_handle_t device_handle;
851851 void *file_path;
852852 void *reserved;
853853 u32 load_options_size;
@@ -856,7 +856,7 @@ typedef struct { · 2 unmodified lines
856856 __aligned_u64 image_size;
857857 unsigned int image_code_type;
858858 unsigned int image_data_type;
859− unsigned long unload;
859+ efi_status_t (*unload)(efi_handle_t image_handle);
860860 } efi_loaded_image_t;
861861
862862

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t