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: 997499 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="KtgzDail"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42vwlr5FJxz9s7T for ; Wed, 14 Nov 2018 18:16:40 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 650C7C224AD; Wed, 14 Nov 2018 07:16:35 +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-Google-Smtp-Source: AJdET5eqhhzXaYUSYR6CAQsB+TLahM5FaAxO4oyw2vI6gJbui2vc+SlRMiZyW9wR78Y8XwGoCHsiSw== 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; }