From nobody Wed Dec 25 01:20:46 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1511345268609442.2625698702593; Wed, 22 Nov 2017 02:07:48 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 8C1A1220C1610; Wed, 22 Nov 2017 02:03:29 -0800 (PST) Received: from mail-wr0-x243.google.com (mail-wr0-x243.google.com [IPv6:2a00:1450:400c:c0c::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 49729220C1608 for ; Wed, 22 Nov 2017 02:03:28 -0800 (PST) Received: by mail-wr0-x243.google.com with SMTP id k18so9040014wre.1 for ; Wed, 22 Nov 2017 02:07:44 -0800 (PST) Received: from localhost.localdomain ([154.145.25.106]) by smtp.gmail.com with ESMTPSA id i192sm2761457wmf.46.2017.11.22.02.07.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 02:07:41 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::243; helo=mail-wr0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u4dNtRs6JllofAsA9t+iMFTOq8romJgNxKj+UPaqM8U=; b=R+QOaWWFxh8YixkCQMnRAVQXxJ1+KqjCqZf1U9jSSHbdJIi7pEro53ZX3P2A4c2fVB 4Gip9TwskIO0TMfmUsMyMzhQM5ATRlcjsdZJyJZwWug3gBUyhErEpWl8UGrs1vKXh6kX OMg+oGlmV0e0nHIdMuJgldaKIazn8mMW9WBQs= 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:in-reply-to :references; bh=u4dNtRs6JllofAsA9t+iMFTOq8romJgNxKj+UPaqM8U=; b=pG6c/2Ikmlzdm0subYD7lyAVv7Rrp/LRwM8wuLSO0AxGKQfnCsYuofX3cYcunGq3Sr 9MzlqrUYcQbZNueqdKVj6OHahEk1JbyElWUczadRnViyELgsoWEWBNV7wAZ+f+ngTwHB CR1hy5rxyOQR/1yrSqkBhg49naXDqiPuftgntnjesuRCStVdHrtzwLhzaS7MmCYy+VBM hWNc3cFOfemHFL7hq/yKp+XniRR/3BacUFydJtf/tgYQad7dOayjjcH7Yl8B2RDdLMDv Lvod4fo1s4C88TDbChNiiyWymwllwam0Vu3BBkudqYdkgQRlInUF56SgFyRxa1/tPMsL XGmQ== X-Gm-Message-State: AJaThX7ndZ0J4iJZx5ADCDl498nKTCmp6Jh2UJBngDXs6jktWOvD/bxm X9afbxVFAepMWL8Hqaym7iq15uQD2YI= X-Google-Smtp-Source: AGs4zMZFHd5DZw6LhCF+X55EuAIkJRB0V0i7uFXKM6BIPH7x1XnPp2C/feF9HaB1zmfHDcXcMN2Xtw== X-Received: by 10.223.129.35 with SMTP id 32mr16082250wrm.271.1511345262419; Wed, 22 Nov 2017 02:07:42 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org, lersek@redhat.com Date: Wed, 22 Nov 2017 10:07:19 +0000 Message-Id: <20171122100731.24525-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171122100731.24525-1-ard.biesheuvel@linaro.org> References: <20171122100731.24525-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v2 02/14] ArmVirtPkg/PrePi: remove unused GetPlatformPpi() function X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Remove GetPlatformPpi() from PrePi: it is not used anywhere. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmVirtPkg/PrePi/PrePi.c | 24 -------------------- ArmVirtPkg/PrePi/PrePi.h | 6 ----- 2 files changed, 30 deletions(-) diff --git a/ArmVirtPkg/PrePi/PrePi.c b/ArmVirtPkg/PrePi/PrePi.c index 3679087aec4d..c4fa979c43ef 100755 --- a/ArmVirtPkg/PrePi/PrePi.c +++ b/ArmVirtPkg/PrePi/PrePi.c @@ -35,30 +35,6 @@ ProcessLibraryConstructorList ( VOID ); =20 -EFI_STATUS -GetPlatformPpi ( - IN EFI_GUID *PpiGuid, - OUT VOID **Ppi - ) -{ - UINTN PpiListSize; - UINTN PpiListCount; - EFI_PEI_PPI_DESCRIPTOR *PpiList; - UINTN Index; - - PpiListSize =3D 0; - ArmPlatformGetPlatformPpiList (&PpiListSize, &PpiList); - PpiListCount =3D PpiListSize / sizeof(EFI_PEI_PPI_DESCRIPTOR); - for (Index =3D 0; Index < PpiListCount; Index++, PpiList++) { - if (CompareGuid (PpiList->Guid, PpiGuid) =3D=3D TRUE) { - *Ppi =3D PpiList->Ppi; - return EFI_SUCCESS; - } - } - - return EFI_NOT_FOUND; -} - VOID PrePiMain ( IN UINTN UefiMemoryBase, diff --git a/ArmVirtPkg/PrePi/PrePi.h b/ArmVirtPkg/PrePi/PrePi.h index d3189c0b8a6f..153f06b9c7fb 100644 --- a/ArmVirtPkg/PrePi/PrePi.h +++ b/ArmVirtPkg/PrePi/PrePi.h @@ -61,12 +61,6 @@ BuildMemoryTypeInformationHob ( VOID ); =20 -EFI_STATUS -GetPlatformPpi ( - IN EFI_GUID *PpiGuid, - OUT VOID **Ppi - ); - // Initialize the Architecture specific controllers VOID ArchInitialize ( --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel