ACPI / adxl: Add address translation interface using ACPI DSM
Borislav Petkov
maintainerPATCH v3 1/3 ACPI / adxl: Add address translation interface using ACPI DSM
Quoted 11 lines · Tony
That make
Kconfighappy, but leads to a couple of link errors:MODPOST vmlinux.o
drivers/edac/skx_edac.o: In function `skx_mce_check_error':
skx_edac.c:(.text+0xab): undefined reference toadxl_decode' drivers/edac/skx_edac.o: In functionskx_init':
skx_edac.c:(.init.text+0x863): undefined reference to `adxl_get_component_names'
make: *** [Makefile:1036: vmlinux] Error 1Perhaps Boris is right and we do need to make
ACPI_ADXLuser selectable, and have the skylake EDAC driver "depends onACPI_ADXL" :-(
That seems to work:
drivers/edac/Kconfig +1 -1
@@ -234,7 +234,7 @@ config EDAC_SKX depends on PCI && X86_64 && X86_MCE_INTEL && PCI_MMCONFIG depends on ACPI_NFIT || !ACPI_NFIT # if ACPI_NFIT=m, EDAC_SKX can't be y select DMI - select ACPI_ADXL + select ACPI_ADXL if ACPI help Support for error detection and correction the Intel Skylake server Integrated Memory Controllers. If your
include/linux/adxl.h +5 -0
@@ -7,7 +7,12 @@#ifndef _LINUX_ADXL_H#define _LINUX_ADXL_H +#ifdef CONFIG_ACPI_ADXL const char *const *adxl_get_component_names (void );int adxl_decode (u64 addr,u64 component_values[]); +#else +static inline const char *const *adxl_get_component_names (void ) {return NULL ; } +static inline int adxl_decode (u64 addr,u64 component_values[]) {return false; } +#endif #endif /* _LINUX_ADXL_H */