Skip to content

Commit 0a9ece9

Browse files
rddunlapaegl
authored andcommitted
EDAC/igen6: fix core dependency
igen6_edac needs mce_register()/unregister() functions, so it should depend on X86_MCE (or X86_MCE_INTEL). That change prevents these build errors: ld: drivers/edac/igen6_edac.o: in function `igen6_remove': igen6_edac.c:(.text+0x494): undefined reference to `mce_unregister_decode_chain' ld: drivers/edac/igen6_edac.o: in function `igen6_probe': igen6_edac.c:(.text+0xf5b): undefined reference to `mce_register_decode_chain' Fixes: 10590a9 ("EDAC/igen6: Add EDAC driver for Intel client SoCs using IBECC") Reported-by: kernel test robot <[email protected]> Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Tony Luck <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f0a029f commit 0a9ece9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/edac/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ config EDAC_PND2
270270

271271
config EDAC_IGEN6
272272
tristate "Intel client SoC Integrated MC"
273-
depends on PCI && X86_64 && PCI_MMCONFIG && ARCH_HAVE_NMI_SAFE_CMPXCHG
273+
depends on PCI && PCI_MMCONFIG && ARCH_HAVE_NMI_SAFE_CMPXCHG
274+
depends on X64_64 && X86_MCE_INTEL
274275
help
275276
Support for error detection and correction on the Intel
276277
client SoC Integrated Memory Controller using In-Band ECC IP.

0 commit comments

Comments
 (0)