LKML Archive on
help / color / mirror / Atom feed
From: Randy Dunlap <>
To: LKML <>, Tony Luck <>
Cc: Andrew Morton <>,
	Borislav Petkov <>,
	Mauro Carvalho Chehab <>,
	Linux Edac Mailing List <>
Subject: [PATCH] edac: fix skx_edac build error when ACPI_NFIT=m
Date: Sat, 12 May 2018 18:02:12 -0700	[thread overview]
Message-ID: <> (raw)

From: Randy Dunlap <>

Prevent build error when CONFIG_ACPI_NFIT=m and CONFIG_EDAC_SKX=y
by limiting EDAC_SKX based on how ACPI_NFIT is set.

Fixes this build error:
drivers/edac/skx_edac.o: In function `get_nvdimm_info':
../drivers/edac/skx_edac.c:399: undefined reference to `nfit_get_smbios_id'

Fixes: 58ca9ac1463d ("EDAC, skx_edac: Detect non-volatile DIMMs")

Reported-by: kbuild test robot <>
Signed-off-by: Randy Dunlap <>
Cc: Tony Luck <>
Cc: Borislav Petkov <>
Cc: Mauro Carvalho Chehab <>
 drivers/edac/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- lnx-417-rc4.orig/drivers/edac/Kconfig
+++ lnx-417-rc4/drivers/edac/Kconfig
@@ -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 || !ACPI_NFIT
 	select DMI
 	  Support for error detection and correction the Intel

             reply	other threads:[~2018-05-13  1:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-13  1:02 Randy Dunlap [this message]
2018-05-13 11:12 ` Borislav Petkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] edac: fix skx_edac build error when ACPI_NFIT=m' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).