Commit 085d07cd3b8c9a12d5a02c13b56ab92436c062ba

Authored by Heinrich Schuchardt
Committed by Alexander Graf
1 parent 2edab5e2e6

efi_loader: argument of efi_search_obj should be const

The argument of efi_search_obj is not changed so it should
be marked as const.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

include/efi_loader.h
... ... @@ -195,7 +195,7 @@
195 195 /* Create handle */
196 196 efi_status_t efi_create_handle(void **handle);
197 197 /* Call this to validate a handle and find the EFI object for it */
198   -struct efi_object *efi_search_obj(void *handle);
  198 +struct efi_object *efi_search_obj(const void *handle);
199 199 /* Call this to create an event */
200 200 efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
201 201 void (EFIAPI *notify_function) (
lib/efi_loader/efi_boottime.c
... ... @@ -690,7 +690,7 @@
690 690 * @handle handle to find
691 691 * @return EFI object
692 692 */
693   -struct efi_object *efi_search_obj(void *handle)
  693 +struct efi_object *efi_search_obj(const void *handle)
694 694 {
695 695 struct efi_object *efiobj;
696 696