aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/srat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/srat.h')
-rw-r--r--include/asm-x86/srat.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/asm-x86/srat.h b/include/asm-x86/srat.h
index f4bba131d06..5363e4f7e1c 100644
--- a/include/asm-x86/srat.h
+++ b/include/asm-x86/srat.h
@@ -24,14 +24,16 @@
* Send feedback to Pat Gaughen <gone@us.ibm.com>
*/
-#ifndef _ASM_SRAT_H_
-#define _ASM_SRAT_H_
-
-#ifndef CONFIG_ACPI_SRAT
-#error CONFIG_ACPI_SRAT not defined, and srat.h header has been included
-#endif
+#ifndef ASM_X86__SRAT_H
+#define ASM_X86__SRAT_H
+#ifdef CONFIG_ACPI_NUMA
extern int get_memcfg_from_srat(void);
-extern unsigned long *get_zholes_size(int);
+#else
+static inline int get_memcfg_from_srat(void)
+{
+ return 0;
+}
+#endif
-#endif /* _ASM_SRAT_H_ */
+#endif /* ASM_X86__SRAT_H */