From patchwork Tue Sep 2 22:56:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 36529 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7FF8C20C87 for ; Tue, 2 Sep 2014 22:57:04 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id et14sf77914296pad.10 for ; Tue, 02 Sep 2014 15:57:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:subject:precedence:reply-to:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=3n6mLPbLiJlfAXPhqGH5Tx2uLiIoeLQ0Z/D+XKhhCMA=; b=EPjp5tXpw8yhfMc4oQrEe4Y8JwURTvvYAGjHosaj6kJEphZKW8cfEWXfkkk57GKigv 8GM2VN9xZp7XzGH8u8EvuH/VXmk9Uz0Czpc1h+H3NilEFn7iKGcytBbdbZ8Fc9r/4zzX HQXEDZcMu5Fyq6w0DKuc0sockeNm1bVdCD2SpWUEIjAE6qEqpwQA3HkJ7VFBCQ6c22Ma 9OQGWnUdQi4/QR/CVI7zUlTVyBO8MvnlS7AGgD/UMQff/Qv9g8X0Sy7uA4pnJ58GeqDe gcTK93/IyO2XURiocgk8Eix9pSksAr0IoTQmbPe1KZevmuzvdnIURoMrZoUyoa8u8qoK cXPw== X-Gm-Message-State: ALoCoQknEyIT2dGQ2wiYrNkEmcPktuWKibQVwAlTEdncbDpuLl3ytvAMCG845Xo4Myq+6wBZfJ+8 X-Received: by 10.66.157.197 with SMTP id wo5mr2391721pab.43.1409698623805; Tue, 02 Sep 2014 15:57:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.42 with SMTP id j39ls2744769qge.89.gmail; Tue, 02 Sep 2014 15:57:03 -0700 (PDT) X-Received: by 10.220.182.1 with SMTP id ca1mr32001476vcb.21.1409698623685; Tue, 02 Sep 2014 15:57:03 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id i13si163773vdf.104.2014.09.02.15.57.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Sep 2014 15:57:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so7927469vcb.30 for ; Tue, 02 Sep 2014 15:57:03 -0700 (PDT) X-Received: by 10.52.246.198 with SMTP id xy6mr27021376vdc.7.1409698623569; Tue, 02 Sep 2014 15:57:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp596454vcb; Tue, 2 Sep 2014 15:57:03 -0700 (PDT) X-Received: by 10.50.88.37 with SMTP id bd5mr40292306igb.1.1409698622422; Tue, 02 Sep 2014 15:57:02 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id w2si176091igl.29.2014.09.02.15.57.01 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Sep 2014 15:57:02 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XOx0Q-0001Bq-Si; Tue, 02 Sep 2014 22:56:54 +0000 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XOx0P-0001Bg-9v for edk2-devel@lists.sourceforge.net; Tue, 02 Sep 2014 22:56:53 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=lersek@redhat.com; helo=mx1.redhat.com; Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XOx0O-0008OI-Fv for edk2-devel@lists.sourceforge.net; Tue, 02 Sep 2014 22:56:53 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s82MukBK016331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 2 Sep 2014 18:56:46 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-55.ams2.redhat.com [10.36.116.55]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s82MueDV005138 for ; Tue, 2 Sep 2014 18:56:45 -0400 From: Laszlo Ersek To: edk2-devel@lists.sourceforge.net Date: Wed, 3 Sep 2014 00:56:32 +0200 Message-Id: <1409698598-9766-6-git-send-email-lersek@redhat.com> In-Reply-To: <1409698598-9766-1-git-send-email-lersek@redhat.com> References: <54063964.8060402@redhat.com> <1409698598-9766-1-git-send-email-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -3.2 (---) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -1.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1XOx0O-0008OI-Fv Subject: [edk2] [PATCH 06/12] OvmfPkg: PlatformFvbLibNull: add constructor X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Calls to constructors of interdependent library instances are generated in the correct order only if all library instances in question have constructors. If some have no constructors, then the rest may see their constructors called out of order. Cycle detection also only works when all library instances have constructors. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.inf | 2 ++ OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.inf b/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.inf index 5f51391..3e409a0 100644 --- a/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.inf +++ b/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.inf @@ -23,6 +23,8 @@ VERSION_STRING = 1.0 LIBRARY_CLASS = PlatformFvbLib|DXE_RUNTIME_DRIVER + CONSTRUCTOR = PlatformFvbLibNullConstructor + # # The following information is for reference only and not required by the build tools. # diff --git a/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.c b/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.c index ea5da6e..2a8c64a 100644 --- a/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.c +++ b/OvmfPkg/Library/PlatformFvbLibNull/PlatformFvbLibNull.c @@ -87,3 +87,11 @@ PlatformFvbBlocksErased ( } +RETURN_STATUS +EFIAPI +PlatformFvbLibNullConstructor ( + VOID + ) +{ + return RETURN_SUCCESS; +}