Skip to contentSkip to conversation

EDAC, skx_edac: Express dependency to NFIT

PATCH Jean Delvare 1 participant 1 message May 14, 2018 EDAC-core

lore
Share & tools
lore
#0 lore raw

If ACPI_NFIT is enabled, we must depend on it, otherwise if skx_edac is built into the kernel, it may try to use nfit_get_smbios_id from modular nfit and linking will break.

Fixes 58ca9ac1463d ("EDAC, skx_edac: Detect non-volatile DIMMs")
Cc Tony Luck <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
---
 drivers/edac/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/edac/Kconfig +1 -0
@@ -232,6 +232,7 @@ config EDAC_SBRIDGE
 config EDAC_SKX
 	tristate "Intel Skylake server Integrated MC"
 	depends on PCI && X86_64 && X86_MCE_INTEL && PCI_MMCONFIG
+	depends on ACPI_NFIT=n || ACPI_NFIT
 	select DMI
 	help
 	  Support for error detection and correction the Intel