summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2018-08-01 12:31:18 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2018-08-01 12:31:18 -0400
commit3ad5676190426db3f4eb203558f0240d8f367a39 (patch)
tree8318e5d43788a025892d29455ca7ff14a1fc5e64
parente2e63718025e2dca54b066cd7b87d0e29e75a3ab (diff)
downloadlongterm-queue-4.12-3ad5676190426db3f4eb203558f0240d8f367a39.tar.gz
acpi: drop ghes dead code removal patch
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r--queue/ACPI-APEI-remove-the-unused-dead-code-for-SEA-NMI-no.patch77
-rw-r--r--queue/series1
2 files changed, 0 insertions, 78 deletions
diff --git a/queue/ACPI-APEI-remove-the-unused-dead-code-for-SEA-NMI-no.patch b/queue/ACPI-APEI-remove-the-unused-dead-code-for-SEA-NMI-no.patch
deleted file mode 100644
index 5a853d7..0000000
--- a/queue/ACPI-APEI-remove-the-unused-dead-code-for-SEA-NMI-no.patch
+++ /dev/null
@@ -1,77 +0,0 @@
-From c49870e89f4d2c21c76ebe90568246bb0f3572b7 Mon Sep 17 00:00:00 2001
-From: Dongjiu Geng <gengdongjiu@huawei.com>
-Date: Tue, 17 Oct 2017 16:02:20 +0800
-Subject: [PATCH] ACPI / APEI: remove the unused dead-code for SEA/NMI
- notification type
-
-commit c49870e89f4d2c21c76ebe90568246bb0f3572b7 upstream.
-
-For the SEA notification, the two functions ghes_sea_add() and
-ghes_sea_remove() are only called when CONFIG_ACPI_APEI_SEA
-is defined. If not, it will return errors in the ghes_probe()
-and not continue. If the probe is failed, the ghes_sea_remove()
-also has no chance to be called. Hence, remove the unnecessary
-handling when CONFIG_ACPI_APEI_SEA is not defined.
-
-For the NMI notification, it has the same issue as SEA notification,
-so also remove the unused dead-code for it.
-
-Signed-off-by: Dongjiu Geng <gengdongjiu@huawei.com>
-Tested-by: Tyler Baicar <tbaicar@codeaurora.org>
-Reviewed-by: Borislav Petkov <bp@suse.de>
-Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-
-diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c
-index 69ef0b6bf25d..cb7aceae3553 100644
---- a/drivers/acpi/apei/ghes.c
-+++ b/drivers/acpi/apei/ghes.c
-@@ -852,17 +852,8 @@ static void ghes_sea_remove(struct ghes *ghes)
- synchronize_rcu();
- }
- #else /* CONFIG_ACPI_APEI_SEA */
--static inline void ghes_sea_add(struct ghes *ghes)
--{
-- pr_err(GHES_PFX "ID: %d, trying to add SEA notification which is not supported\n",
-- ghes->generic->header.source_id);
--}
--
--static inline void ghes_sea_remove(struct ghes *ghes)
--{
-- pr_err(GHES_PFX "ID: %d, trying to remove SEA notification which is not supported\n",
-- ghes->generic->header.source_id);
--}
-+static inline void ghes_sea_add(struct ghes *ghes) { }
-+static inline void ghes_sea_remove(struct ghes *ghes) { }
- #endif /* CONFIG_ACPI_APEI_SEA */
-
- #ifdef CONFIG_HAVE_ACPI_APEI_NMI
-@@ -1064,23 +1055,9 @@ static void ghes_nmi_init_cxt(void)
- init_irq_work(&ghes_proc_irq_work, ghes_proc_in_irq);
- }
- #else /* CONFIG_HAVE_ACPI_APEI_NMI */
--static inline void ghes_nmi_add(struct ghes *ghes)
--{
-- pr_err(GHES_PFX "ID: %d, trying to add NMI notification which is not supported!\n",
-- ghes->generic->header.source_id);
-- BUG();
--}
--
--static inline void ghes_nmi_remove(struct ghes *ghes)
--{
-- pr_err(GHES_PFX "ID: %d, trying to remove NMI notification which is not supported!\n",
-- ghes->generic->header.source_id);
-- BUG();
--}
--
--static inline void ghes_nmi_init_cxt(void)
--{
--}
-+static inline void ghes_nmi_add(struct ghes *ghes) { }
-+static inline void ghes_nmi_remove(struct ghes *ghes) { }
-+static inline void ghes_nmi_init_cxt(void) { }
- #endif /* CONFIG_HAVE_ACPI_APEI_NMI */
-
- static int ghes_probe(struct platform_device *ghes_dev)
---
-2.15.0
-
diff --git a/queue/series b/queue/series
index a678b8e..56ee8d4 100644
--- a/queue/series
+++ b/queue/series
@@ -1,6 +1,5 @@
ACPI-APEI-adjust-a-local-variable-type-in-ghes_iorem.patch
x86-platform-UV-Convert-timers-to-use-timer_setup.patch
-ACPI-APEI-remove-the-unused-dead-code-for-SEA-NMI-no.patch
ACPI-APEI-Replace-ioremap_page_range-with-fixmap.patch
bpf-fix-build-issues-on-um-due-to-mising-bpf_perf_ev.patch
optee-fix-invalid-of_node_put-in-optee_driver_init.patch