Subject: [PATCH 0295/2944] ICX: EDAC, i10nm: Fix randconfig builds

From: Tony Luck <[email-masked]>
Date: Tue, 5 Feb 2019 10:02:00 -0800

commit d6a9f7336d925364daca00557afa59a68e78b422 upstream.

I10NM_EDAC depends on CONFIG_ACPI so make that dependency explicit.

Reported-by: Borislav Petkov <[email-masked]>
Signed-off-by: Tony Luck <[email-masked]>
Signed-off-by: Borislav Petkov <[email-masked]>
Cc: Aristeu Rozanski <[email-masked]>
Cc: James Morse <[email-masked]>
Cc: Mauro Carvalho Chehab <[email-masked]>
Cc: Qiuxu Zhuo <[email-masked]>
Cc: linux-edac <[email-masked]>
Link: https://lkml.kernel.org/r/[email-masked]
Signed-off-by: Caspar Zhang <[email-masked]>
Reviewed-by: Joseph Qi <[email-masked]>
---
 drivers/edac/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
index 1886c8e..34c8109 100644
--- a/drivers/edac/Kconfig
+++ b/drivers/edac/Kconfig
@@ -243,10 +243,10 @@ config EDAC_SKX
 
 config EDAC_I10NM
 	tristate "Intel 10nm server Integrated MC"
-	depends on PCI && X86_64 && X86_MCE_INTEL && PCI_MMCONFIG
+	depends on PCI && X86_64 && X86_MCE_INTEL && PCI_MMCONFIG && ACPI
 	depends on ACPI_NFIT || !ACPI_NFIT # if ACPI_NFIT=m, EDAC_I10NM can't be y
 	select DMI
-	select ACPI_ADXL if ACPI
+	select ACPI_ADXL
 	help
 	  Support for error detection and correction the Intel
 	  10nm server Integrated Memory Controllers. If your
-- 
1.8.3.1