From patchwork Wed Nov 22 10:07:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 119445 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp6489148qgn; Wed, 22 Nov 2017 02:07:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMbD5ta62gR0WcSeaSmr8+UZuQOtP7kmjHscoGWC/wL6i6s+z0yw7jkaWjHTzYt7W3yhtaGW X-Received: by 10.84.234.9 with SMTP id m9mr21326924plk.3.1511345268092; Wed, 22 Nov 2017 02:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511345268; cv=none; d=google.com; s=arc-20160816; b=WTPDyuIWqZRYHvDJJouVjSssd18jPMW92Q33fARmIRFfY/qK/BzvwuVe55bjXuEM+L z7/as8WW3fsvtkPtcCwf0G/PyG+i5ZV9tqHwkNwso86t5bRSqiBgaGkckGLPm+oXBEaW d3wqV1x4yj/JdWKM9gVY4sVQFKxh4l3zQEcflXDmOVSruDjHuYsYyeiAKC6i93hC8gf6 2+lML1zf5DhOZ53+J41MJQ1H1OaejBUASOeg+R/drHK86KR6YbL1G7huQN+AH3VSoyQR gHwWwdDkkbW7ELxtrHaMX0+u4fCSRoe5Cv+N7PO1KruHblXF6dhvqsLYOJoituw6JHPE Ikxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=yeP8bGf7j+AsSK8FKmycbCNvRB0RdtbSVSXcQOnBETs=; b=GJil+QDgySE/r5BFu+4GhMGAg83VGN0T8h875MXruyP3apRcVdJoMEPWi0P4WH0f9t KffGihpAAO6CcK71E3GEjakkye2lVzcR55uc6o7BzBylIrd53QZxAtq50KL0+PSttN33 LkoqGBmsEuMIU32PZVu3TPBDWTEZOcnf/vMN9kt85xdh03CKFmgG1RpClwBDeBM9obpj ft+S9HqGSVkCuPtgEyykv6qSv5EuX6XbuV8PJrfm1b40gbuyoqcbIUVZAj9EDQ+/xeDe uR+Bo8ap7p7Yl6+8UKOTGGxv5v8Q32HOtpDnAWQgTYsRf3k7KYND4dUn8fY9BdBRRKCQ xpEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=R+QOaWWF; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id 102si13214089pld.614.2017.11.22.02.07.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 02:07:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=R+QOaWWF; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.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 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) 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-Received: by 10.223.129.35 with SMTP id 32mr16082250wrm.271.1511345262419; Wed, 22 Nov 2017 02:07:42 -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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel 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 ); -EFI_STATUS -GetPlatformPpi ( - IN EFI_GUID *PpiGuid, - OUT VOID **Ppi - ) -{ - UINTN PpiListSize; - UINTN PpiListCount; - EFI_PEI_PPI_DESCRIPTOR *PpiList; - UINTN Index; - - PpiListSize = 0; - ArmPlatformGetPlatformPpiList (&PpiListSize, &PpiList); - PpiListCount = PpiListSize / sizeof(EFI_PEI_PPI_DESCRIPTOR); - for (Index = 0; Index < PpiListCount; Index++, PpiList++) { - if (CompareGuid (PpiList->Guid, PpiGuid) == TRUE) { - *Ppi = 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 ); -EFI_STATUS -GetPlatformPpi ( - IN EFI_GUID *PpiGuid, - OUT VOID **Ppi - ); - // Initialize the Architecture specific controllers VOID ArchInitialize (