From nobody Mon Feb 9 16:32:47 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+97875+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97875+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1672758180; cv=none; d=zohomail.com; s=zohoarc; b=AA7XsOdhlv2ELKLACySPcUtOwRvP++F4EZtknyBWZFW/VRjenaaBAu9mUSB1IxHvcNgqamT0Nncxs7iAHaqYblb0eAVsgJwzxlCTMXsfJClK5n7Z3grdVd+Z7XTCnc9ziNF+SDh05OZZHAM8pRlp1SEFqtAf0fQyMrSeeOap44k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1672758180; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=Smr1X2mBVl17hv4TU7cjEap2AlCtB3hK346eIBhvcvc=; b=ZlNGmowM1HoqS+MiFGpMRS5qyo8OEOzKfI66srdVIC4BtHXauiaEswVSYgqOCtSfP8l8ZmDB+D/dXcFjmI3U+h28mRyIW1apXo3v511NcCpPCS6H3AEppEa1RhUucnXskjKUlIKHfS26lIKKl1KQe5mMO/9Z1OAhUigczMRLX7c= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+97875+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 167275818086950.2441280183607; Tue, 3 Jan 2023 07:03:00 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id s2gaYY1788612xJVVPxVOd49; Tue, 03 Jan 2023 07:03:00 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.65342.1672758179720557442 for ; Tue, 03 Jan 2023 07:02:59 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-168-E8K94iwdMASK2p08Q94UKA-1; Tue, 03 Jan 2023 10:02:57 -0500 X-MC-Unique: E8K94iwdMASK2p08Q94UKA-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 537FD858F09; Tue, 3 Jan 2023 15:02:57 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.192.59]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3923C492C14; Tue, 3 Jan 2023 15:02:56 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Eric Dong , Gerd Hoffmann , Rahul Kumar , Ray Ni Subject: [edk2-devel] [PATCH 3/4] UefiCpuPkg/SmmCpuFeaturesLib: drop obsolete API implementation Date: Tue, 3 Jan 2023 16:02:43 +0100 Message-Id: <20230103150244.66835-4-lersek@redhat.com> In-Reply-To: <20230103150244.66835-1-lersek@redhat.com> References: <20230103150244.66835-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com X-Gm-Message-State: NI78AhfyswnjuMgATigAxHqXx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1672758180; bh=Smr1X2mBVl17hv4TU7cjEap2AlCtB3hK346eIBhvcvc=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=HXAbHHNPrRCYLJetO3ZFVh28gXmQTK8kx3Cellt1n+6CuuImQPudMrFp0K7mvVANApP wHfc1tW6QsGGTBMBJWrvfqJ2eGIHDynHwuo5UZ1BjINrY0VUBuy7Zl+CLhyBRg0f6ZeO3 zKIm8sF6BSuH+vmT6s6HQBOIFnn27V7bzSU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1672758181641100011 Content-Type: text/plain; charset="utf-8"; x-default="true" Commit 0426115b6738 ("UefiCpuPkg: Remove unused API in SmmCpuFeaturesLib.h", 2022-12-21) removed the declaration of the function SmmCpuFeaturesAllocatePageTableMemory() from the "SmmCpuFeaturesLib.h" library class header. Remove the API's (null-)implementation from UefiCpuPkg/SmmCpuFeaturesLib as well. Build-tested with: build -a IA32 -a X64 -b NOOPT -p UefiCpuPkg/UefiCpuPkg.dsc -t GCC5 Cc: Eric Dong Cc: Gerd Hoffmann Cc: Rahul Kumar Cc: Ray Ni Bugzilla: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4235 Signed-off-by: Laszlo Ersek --- UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibCommon.c | 28 ------= -------------- 1 file changed, 28 deletions(-) diff --git a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibCommon.c= b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibCommon.c index 7777e52740eb..5498fda38da4 100644 --- a/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibCommon.c +++ b/UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibCommon.c @@ -186,31 +186,3 @@ SmmCpuFeaturesCompleteSmmReadyToLock ( ) { } - -/** - This API provides a method for a CPU to allocate a specific region for s= toring page tables. - - This API can be called more once to allocate memory for page tables. - - Allocates the number of 4KB pages of type EfiRuntimeServicesData and ret= urns a pointer to the - allocated buffer. The buffer returned is aligned on a 4KB boundary. If= Pages is 0, then NULL - is returned. If there is not enough memory remaining to satisfy the req= uest, then NULL is - returned. - - This function can also return NULL if there is no preference on where th= e page tables are allocated in SMRAM. - - @param Pages The number of 4 KB pages to allocate. - - @return A pointer to the allocated buffer for page tables. - @retval NULL Fail to allocate a specific region for storing page ta= bles, - Or there is no preference on where the page tables are= allocated in SMRAM. - -**/ -VOID * -EFIAPI -SmmCpuFeaturesAllocatePageTableMemory ( - IN UINTN Pages - ) -{ - return NULL; -} -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#97875): https://edk2.groups.io/g/devel/message/97875 Mute This Topic: https://groups.io/mt/96029300/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-