diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2023-06-19 14:14:03 +0300 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-07-20 09:12:50 +0200 |
commit | 21eb7c16ec86e239482386238ea606170ef4e90d (patch) | |
tree | d12ba715c2d57d38d6f324711a9faf23fee80308 /lib | |
parent | 4a3baf9da6f721ada4d603a1d1d20c491a54d609 (diff) | |
download | u-boot-21eb7c16ec86e239482386238ea606170ef4e90d.zip u-boot-21eb7c16ec86e239482386238ea606170ef4e90d.tar.gz u-boot-21eb7c16ec86e239482386238ea606170ef4e90d.tar.bz2 |
efi_loader: make efi_remove_protocol() static
A previous patch is removing the last consumer of efi_remove_protocol().
Switch that to static and treat it as an internal API in order to force
users install and remove protocols with the appropriate EFI functions.
It's worth noting that we still have files using efi_add_protocol(). We
should convert all these to efi_install_multiple_protocol_interfaces()
and treat efi_add_protocol() in a similar manner
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_boottime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 69f2daa..052fe48 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -575,9 +575,9 @@ efi_status_t efi_search_protocol(const efi_handle_t handle, * * Return: status code */ -efi_status_t efi_remove_protocol(const efi_handle_t handle, - const efi_guid_t *protocol, - void *protocol_interface) +static efi_status_t efi_remove_protocol(const efi_handle_t handle, + const efi_guid_t *protocol, + void *protocol_interface) { struct efi_handler *handler; efi_status_t ret; |