From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web12.4855.1578323595782859386 for ; Mon, 06 Jan 2020 07:13:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@linaro.org header.s=google header.b=RAiOYQHE; spf=pass (domain: linaro.org, ip: 209.85.221.48, mailfrom: ard.biesheuvel@linaro.org) Received: by mail-wr1-f48.google.com with SMTP id w15so37400601wru.4 for ; Mon, 06 Jan 2020 07:13:15 -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 :mime-version:content-transfer-encoding; bh=cYUf/hdEPzeDI78COQ9fbup0B7BagXwvt5PANfPL6Zg=; b=RAiOYQHERdtEQontCH/GuTc5Qi+Qu36M4MoFuxF6I8TlIsAmGIc5mWAKcS4/T4OU4Q kHqIh/oHmf6vj8d7P7rP2XfwL6W3OufOvXPEW4z+3VGopTJrly7iNZq55zhZDrX9maqF krWLzcBqL8btvO7l2WPUvtKUy37dsNOQMJSr6sXRWaFB90/MLX6fNxd99L2fQ4xeth0C mtoQRX+K7ze1FLfY+3jC+yKyvOEA7YQpnZppGcwRUdvMU1H40aPWSx34+UWtcCM/kyp7 1pUWp8jP22kJkBx+JoE9GhroT6FI64pJLlrJv7QqXI9cZXOJrEYAwcCdJL67gi0dro5/ qKPA== 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:mime-version:content-transfer-encoding; bh=cYUf/hdEPzeDI78COQ9fbup0B7BagXwvt5PANfPL6Zg=; b=tIlbVD/cqgm1Rzl9tonj/BxiHfz3jLPQFDz2YgFMzybaymxSTztei0u8XRS5JBGniH ReHcchkfjwNmwDtzhSOo4kABh/3JTUMJNAEw42BkkNHJV3fZUp88Ec8T8btwavouNeN6 TBre1eBDhbuDM+QVp7v61/+6G0HhGw5kBq51yKiei8e3R2nWhw67aOR+XaPMyS+mhpMm 6R+BSxCLvIhYPPA4cseooyvxcPxNnQ+ISV37FHekZ0G11S+o1XDBo+XS7YNQPnigJYca QUfTWSvCa39nIchGF2eQWdLZ+OENP7x27IG4rVeCsyIHYA9T3MFJXl7OxCGd9y0nJvyr M36Q== X-Gm-Message-State: APjAAAXj1PEN8gFVGpmGSLx76Mtn9lO+U8X1Sl+KdEw3/D9ChxwADAYg Xn4zoXLWvJUXZH7Kmo72Vqwhf3I9i9rLRQ== X-Google-Smtp-Source: APXvYqy5hCN9k9lJK9R69WJesvz1wSyzwtgVFsZQd2oQAFwATVdvEmKI5YP4I1ZAG6m+WSq7QzcUMQ== X-Received: by 2002:a05:6000:1142:: with SMTP id d2mr97736760wrx.253.1578323594122; Mon, 06 Jan 2020 07:13:14 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2a01:cb1d:112:6f00:6051:f896:58f1:b2e4]) by smtp.gmail.com with ESMTPSA id o16sm24484137wmc.18.2020.01.06.07.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 07:13:13 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: maurice.ma@intel.com, guo.dong@intel.com, benjamin.you@intel.com, ray.ni@intel.com, liming.gao@intel.com, hao.a.wu@intel.com, lersek@redhat.com, Ard Biesheuvel Subject: [PATCH 1/5] MdeModulePkg: remove EnterS3WithImmediateWake () from ResetSystemLib Date: Mon, 6 Jan 2020 16:13:06 +0100 Message-Id: <20200106151310.12322-2-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200106151310.12322-1-ard.biesheuvel@linaro.org> References: <20200106151310.12322-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit EnterS3WithImmediateWake () no longer has any callers, so remove it from ResetSystemLib. Signed-off-by: Ard Biesheuvel --- MdeModulePkg/Include/Library/ResetSystemLib.h | 11 ----------- MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.c | 14 -------------- MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.c | 13 ------------- MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.c | 13 ------------- MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c | 13 ------------- 5 files changed, 64 deletions(-) diff --git a/MdeModulePkg/Include/Library/ResetSystemLib.h b/MdeModulePkg/Include/Library/ResetSystemLib.h index 3b2a098a6082..09ee14540c44 100644 --- a/MdeModulePkg/Include/Library/ResetSystemLib.h +++ b/MdeModulePkg/Include/Library/ResetSystemLib.h @@ -51,17 +51,6 @@ ResetShutdown ( VOID ); -/** - This function causes the system to enter S3 and then wake up immediately. - - If this function returns, it means that the system does not support S3 feature. -**/ -VOID -EFIAPI -EnterS3WithImmediateWake ( - VOID - ); - /** This function causes a systemwide reset. The exact type of the reset is defined by the EFI_GUID that follows the Null-terminated Unicode string passed diff --git a/MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.c b/MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.c index 8d4c1028e603..33a896bee054 100644 --- a/MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.c +++ b/MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.c @@ -58,20 +58,6 @@ ResetShutdown ( ASSERT (FALSE); } -/** - This function causes the system to enter S3 and then wake up immediately. - - If this function returns, it means that the system does not support S3 feature. -**/ -VOID -EFIAPI -EnterS3WithImmediateWake ( - VOID - ) -{ - ASSERT (FALSE); -} - /** This function causes a systemwide reset. The exact type of the reset is defined by the EFI_GUID that follows the Null-terminated Unicode string passed diff --git a/MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.c b/MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.c index a85b6cd9a615..47b814fe8dee 100644 --- a/MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.c +++ b/MdeModulePkg/Library/DxeResetSystemLib/DxeResetSystemLib.c @@ -57,19 +57,6 @@ ResetShutdown ( gRT->ResetSystem (EfiResetShutdown, EFI_SUCCESS, 0, NULL); } -/** - This function causes the system to enter S3 and then wake up immediately. - - If this function returns, it means that the system does not support S3 feature. -**/ -VOID -EFIAPI -EnterS3WithImmediateWake ( - VOID - ) -{ -} - /** This function causes a systemwide reset. The exact type of the reset is defined by the EFI_GUID that follows the Null-terminated Unicode string passed diff --git a/MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.c b/MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.c index 50297129b7c8..6c8c770ca375 100644 --- a/MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.c +++ b/MdeModulePkg/Library/PeiResetSystemLib/PeiResetSystemLib.c @@ -57,19 +57,6 @@ ResetShutdown ( PeiServicesResetSystem2 (EfiResetShutdown, EFI_SUCCESS, 0, NULL); } -/** - This function causes the system to enter S3 and then wake up immediately. - - If this function returns, it means that the system does not support S3 feature. -**/ -VOID -EFIAPI -EnterS3WithImmediateWake ( - VOID - ) -{ -} - /** This function causes a systemwide reset. The exact type of the reset is defined by the EFI_GUID that follows the Null-terminated Unicode string passed diff --git a/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c b/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c index 29b3f7ebd871..f4490180ccf9 100644 --- a/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c +++ b/MdeModulePkg/Library/RuntimeResetSystemLib/RuntimeResetSystemLib.c @@ -62,19 +62,6 @@ ResetShutdown ( mInternalRT->ResetSystem (EfiResetShutdown, EFI_SUCCESS, 0, NULL); } -/** - This function causes the system to enter S3 and then wake up immediately. - - If this function returns, it means that the system does not support S3 feature. -**/ -VOID -EFIAPI -EnterS3WithImmediateWake ( - VOID - ) -{ -} - /** This function causes a systemwide reset. The exact type of the reset is defined by the EFI_GUID that follows the Null-terminated Unicode string passed -- 2.20.1