aboutsummaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt2022-03-05 00:36:50 +0100
committerHeinrich Schuchardt2022-03-20 11:03:06 +0100
commitb78631d54f72f063e1f2a5d14a349b1b0d8fbce7 (patch)
tree40d7f34d85102231badd080d696b8557af8ba4bd /include/efi_loader.h
parent90dcd9b2d3a318391453d9d623d931a568906cb5 (diff)
efi_loader: remove efi_disk_is_system_part()
The block IO protocol may be installed on any handle. We should make no assumption about the structure the handle points to. efi_disk_is_system_part() makes an illegal widening cast from a handle to a struct efi_disk_obj. Remove the function. Fixes: Fixes: 41fd506842c2 ("efi_loader: disk: add efi_disk_is_system_part()") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 156056fcd3d..af36639ec6a 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -541,8 +541,6 @@ efi_status_t tcg2_measure_pe_image(void *efi, u64 efi_size,
int efi_disk_create_partitions(efi_handle_t parent, struct blk_desc *desc,
const char *if_typename, int diskid,
const char *pdevname);
-/* Check if it is EFI system partition */
-bool efi_disk_is_system_part(efi_handle_t handle);
/* Called by bootefi to make GOP (graphical) interface available */
efi_status_t efi_gop_register(void);
/* Called by bootefi to make the network interface available */