Re: drivers/edac/skx_edac.c:399: undefined reference to `nfit_get_smbios_id'

From: Jean Delvare
Date: Mon May 14 2018 - 04:05:39 EST


On Sun, 13 May 2018 04:51:21 +0800, kbuild test robot wrote:
> tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head: 427fbe89261d8f11cd20b5a4ba94e977061f69d6
> commit: 58ca9ac1463d07d24b9fa8befe065192abca6f76 EDAC, skx_edac: Detect non-volatile DIMMs
> date: 8 weeks ago
> config: x86_64-randconfig-v0-05130337 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
> reproduce:
> git checkout 58ca9ac1463d07d24b9fa8befe065192abca6f76
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
> drivers/edac/skx_edac.o: In function `get_nvdimm_info':
> >> drivers/edac/skx_edac.c:399: undefined reference to `nfit_get_smbios_id'

This is caused by the following combination of options:

CONFIG_ACPI_NFIT=m
CONFIG_EDAC_SKX=y

Built-in code (skx_edac) can't reference a function from a module
(nfit).

I'll send a candidate fix shortly.

--
Jean Delvare
SUSE L3 Support