diff mbox series

efi_loader: correct a function prototype of QueryCapsuleCapabilities()

Message ID 20181114071853.12975-1-takahiro.akashi@linaro.org
State Accepted
Commit 19dd90748cb60ab2cf88b3e9c52b0da4bc0ae0a5
Headers show
Series efi_loader: correct a function prototype of QueryCapsuleCapabilities() | expand

Commit Message

AKASHI Takahiro Nov. 14, 2018, 7:18 a.m. UTC
See UEFI specification v2.7, section 8.5.3.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
---
 include/efi_api.h            | 4 ++--
 lib/efi_loader/efi_runtime.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/include/efi_api.h b/include/efi_api.h
index f0c23a28e3d6..10917bad43a7 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -242,8 +242,8 @@  struct efi_runtime_services {
 	efi_status_t (EFIAPI *query_capsule_caps)(
 			struct efi_capsule_header **capsule_header_array,
 			efi_uintn_t capsule_count,
-			u64 maximum_capsule_size,
-			u32 reset_type);
+			u64 *maximum_capsule_size,
+			u32 *reset_type);
 	efi_status_t (EFIAPI *query_variable_info)(
 			u32 attributes,
 			u64 *maximum_variable_storage_size,
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c
index 2c8bbb4eba4d..ae750f5371ff 100644
--- a/lib/efi_loader/efi_runtime.c
+++ b/lib/efi_loader/efi_runtime.c
@@ -625,8 +625,8 @@  efi_status_t __efi_runtime EFIAPI efi_update_capsule(
 efi_status_t __efi_runtime EFIAPI efi_query_capsule_caps(
 			struct efi_capsule_header **capsule_header_array,
 			efi_uintn_t capsule_count,
-			u64 maximum_capsule_size,
-			u32 reset_type)
+			u64 *maximum_capsule_size,
+			u32 *reset_type)
 {
 	return EFI_UNSUPPORTED;
 }