From patchwork Wed Nov 14 07:18:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 151041 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5354560ljp; Tue, 13 Nov 2018 23:16:38 -0800 (PST) X-Google-Smtp-Source: AJdET5fHaGfmvEdHCQl6tYFAQCLeHOtk7Sz8UGnamokxY/Q9DHQMkvWEGIVlOpTND+aeqnMx/NR3 X-Received: by 2002:a17:906:1ec4:: with SMTP id m4-v6mr932088ejj.35.1542179798117; Tue, 13 Nov 2018 23:16:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542179798; cv=none; d=google.com; s=arc-20160816; b=pqHulzCvlklxKBx9gnoBPoTyZaKAKUThRTI/3YLVTV4b24SGqSwSh4bXVS/i2OQ+G4 idMtHBIHT8UsoZPe9jpuslRwNSsIHoeY+ohJXoggkp7MGzM98U7Gj7fOqsd2Z5e1pghu p3TyWZXAp6tbgnpXEss9nCq+8HdIIlKB2kOxavFNn6Oz10jBMLc2VzB9Svfa0KCgLdYY ns+rtTs5qzG+WGiN4CHaZmPTYADogSSb65NYNfnMn1Q/Il4tNEBp8W2jT27ZgUimYNtn +lmRc4xC1S3bz2wfBocGmtYtz6rDqpy4A3GUqPl13Qaw8xAjKlaMt9DCJehhUpkYo2IN EKsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature; bh=8RcYOch/lSoLCvGpTprY+u8spo7xK5cTBvgGgvo4b8o=; b=bdsXu3uhCUDXKa+Vt3MLsyUYUccOqxBDJYbau85p6HF0jYAcD7FaJTs6tk+jRGwAzw Cfp+p7/7php/Vjs4rjXlCeJ6+/npMJJ4L9EJ809ZSbJRhYvbEVPP4Nv2/Ho5MaPuI2Mb J4MVqKS65BJNQel0E+eQJqKzTRMAYH9iVdcR7TFhTFAXXK6+oyqwmg4FwBMNmF1tcIcn S+xP829GxQ/DH8+cUDwlnwN9lukRO6qXN3IMkU0TpyJmBxxEEK3N2Aqt+iiCokCZVsyH 1SKTzFJJkjvv+1q77SvdPSPQSYtH+n1LmDoTN3VXxudBQLCH6D1y3aYmRoqIKBNfrMw/ nO8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KtgzDail; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id y8si4740231edq.352.2018.11.13.23.16.37; Tue, 13 Nov 2018 23:16:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KtgzDail; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id B340FC224B5; Wed, 14 Nov 2018 07:16:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 267D6C22046; Wed, 14 Nov 2018 07:16:33 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9FFDEC22046; Wed, 14 Nov 2018 07:16:31 +0000 (UTC) Received: from mail-yw1-f67.google.com (mail-yw1-f67.google.com [209.85.161.67]) by lists.denx.de (Postfix) with ESMTPS id 1F400C22046 for ; Wed, 14 Nov 2018 07:16:31 +0000 (UTC) Received: by mail-yw1-f67.google.com with SMTP id l200so1295971ywe.10 for ; Tue, 13 Nov 2018 23:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=leEoBF4wd/z+2ZPwIQPNy0duoy0mgOp4CC7fFNdyWB8=; b=KtgzDailkOl50kB9ghepszmL16UrhTHgnZ0tbEB/ZueRe+SAmCJx4medBrByIP/Hff EeFUZ94cphWbYoybemqERxHOO+skzniep1N/zKH0YoDXfFunl5TajGfBjUeoyHpK2sMM khKwclWRg7x5LLi3wXjUWc5bckZ7hbrgmjCRk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=leEoBF4wd/z+2ZPwIQPNy0duoy0mgOp4CC7fFNdyWB8=; b=c5AdaWMnQcZUsTI4JiB9clfcjTHBr6n0hu0J3prrRDfBKSrEtQLHkbzlENn4lFMaOD CwJ/BskI6GgfHAEXrC2X9f+HmM3vUI8P3qa9hcnRo7h2tDCh5mKpmIM44AAQSu0Z1AOx FserE0NimewGzcdXjLERFg+/R9hS4+fGuXM2MTJ0mtPh5NI+ZKMRM46f1AUwfk/+ndmc 9lS5A5R9tmvOgvjRUnpIO50MxtdJ0RWH8WH5226PoGuit7nq3Oi1cgC7/AI6cmqi+ghR 3u9Afy1GcUffixbM37RFIOGAbUiyAOd+NHVCcTz3L8uTYyejPrAke1JkbYlK0M31qCiX tNeg== X-Gm-Message-State: AGRZ1gKIgnuxgDaU/23lGnpUM6oVJhbbJc1Gpl5U/r2z7AcbSTZLhMr4 ZHLtJTFOGare54EVEpkW6iJy3g== X-Received: by 2002:a81:6fc5:: with SMTP id k188mr518998ywc.211.1542179789975; Tue, 13 Nov 2018 23:16:29 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id a187-v6sm5992295ywc.101.2018.11.13.23.16.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 23:16:29 -0800 (PST) From: AKASHI Takahiro To: agraf@suse.de Date: Wed, 14 Nov 2018 16:18:53 +0900 Message-Id: <20181114071853.12975-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] efi_loader: correct a function prototype of QueryCapsuleCapabilities() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" See UEFI specification v2.7, section 8.5.3. Signed-off-by: AKASHI Takahiro --- include/efi_api.h | 4 ++-- lib/efi_loader/efi_runtime.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; }