commit:     0bf9749b455d1fe18a7e6a56ba00efadff057106
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  1 13:12:24 2020 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Wed Apr  1 13:12:24 2020 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0bf9749b

Remove redundant patch

Removed: 1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch

Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>

 0000_README                                        |  4 ---
 ...x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch | 33 ----------------------
 2 files changed, 37 deletions(-)

diff --git a/0000_README b/0000_README
index 60b3027..835b96f 100644
--- a/0000_README
+++ b/0000_README
@@ -107,10 +107,6 @@ Patch:  
1510_fs-enable-link-security-restrictions-by-default.patch
 From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
 Desc:   Enable link security restrictions by default.
 
-Patch:  1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch
-From:   https://lkml.org/lkml/diff/2020/3/18/809/1
-Desc:   x86/ioremap: Fix CONFIG_EFI=n build. See bug #713460. Thanks to Phil 
Stracchino.
-
 Patch:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/[email protected]/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758

diff --git a/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch 
b/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch
deleted file mode 100644
index e6bc74f..0000000
--- a/1800_x86-ioremap-Fix-CONFIG_EFI-equals-n-build.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From: Borislav Petkov <[email protected]>
-Date: Wed, 18 Mar 2020 19:27:48 +0100
-
-In order to use efi_mem_type(), one needs CONFIG_EFI enabled. Otherwise
-that function is undefined. Use IS_ENABLED() to check and avoid the
-ifdeffery as the compiler optimizes away the following unreachable code
-then.
-
-Fixes: 985e537a4082 ("x86/ioremap: Map EFI runtime services data as encrypted 
for SEV")
-Reported-by: Randy Dunlap <[email protected]>
-Signed-off-by: Borislav Petkov <[email protected]>
-Cc: Tom Lendacky <[email protected]>
-Link: 
https://lkml.kernel.org/r/[email protected]
----
- arch/x86/mm/ioremap.c | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
-index 935a91e1fd77..18c637c0dc6f 100644
---- a/arch/x86/mm/ioremap.c
-+++ b/arch/x86/mm/ioremap.c
-@@ -115,6 +115,9 @@ static void __ioremap_check_other(resource_size_t addr, 
struct ioremap_desc *des
-       if (!sev_active())
-               return;
- 
-+      if (!IS_ENABLED(CONFIG_EFI))
-+              return;
-+
-       if (efi_mem_type(addr) == EFI_RUNTIME_SERVICES_DATA)
-               desc->flags |= IORES_MAP_ENCRYPTED;
- }
--- 
-2.21.0

Reply via email to