aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/edac/Kconfig4
-rw-r--r--include/linux/adxl.h5
2 files changed, 2 insertions, 7 deletions
diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
index ec2727b27556..e286b5b99003 100644
--- a/drivers/edac/Kconfig
+++ b/drivers/edac/Kconfig
@@ -231,10 +231,10 @@ config EDAC_SBRIDGE
231 231
232config EDAC_SKX 232config EDAC_SKX
233 tristate "Intel Skylake server Integrated MC" 233 tristate "Intel Skylake server Integrated MC"
234 depends on PCI && X86_64 && X86_MCE_INTEL && PCI_MMCONFIG 234 depends on PCI && X86_64 && X86_MCE_INTEL && PCI_MMCONFIG && ACPI
235 depends on ACPI_NFIT || !ACPI_NFIT # if ACPI_NFIT=m, EDAC_SKX can't be y 235 depends on ACPI_NFIT || !ACPI_NFIT # if ACPI_NFIT=m, EDAC_SKX can't be y
236 select DMI 236 select DMI
237 select ACPI_ADXL if ACPI 237 select ACPI_ADXL
238 help 238 help
239 Support for error detection and correction the Intel 239 Support for error detection and correction the Intel
240 Skylake server Integrated Memory Controllers. If your 240 Skylake server Integrated Memory Controllers. If your
diff --git a/include/linux/adxl.h b/include/linux/adxl.h
index 2d29f55923e3..2a629acb4c3f 100644
--- a/include/linux/adxl.h
+++ b/include/linux/adxl.h
@@ -7,12 +7,7 @@
7#ifndef _LINUX_ADXL_H 7#ifndef _LINUX_ADXL_H
8#define _LINUX_ADXL_H 8#define _LINUX_ADXL_H
9 9
10#ifdef CONFIG_ACPI_ADXL
11const char * const *adxl_get_component_names(void); 10const char * const *adxl_get_component_names(void);
12int adxl_decode(u64 addr, u64 component_values[]); 11int adxl_decode(u64 addr, u64 component_values[]);
13#else
14static inline const char * const *adxl_get_component_names(void) { return NULL; }
15static inline int adxl_decode(u64 addr, u64 component_values[]) { return -EOPNOTSUPP; }
16#endif
17 12
18#endif /* _LINUX_ADXL_H */ 13#endif /* _LINUX_ADXL_H */