projects/linux·commit 4e54bdaa

[PATCH] CONFIG_ACPI_SRAT NUMA build fix

4e54bdaa · KAMEZAWA Hiroyuki <[email protected]> · 2006-08-27 01:23:55 -07:00

In file included from include/asm/mmzone.h:18,
                   from include/linux/mmzone.h:439,
  <snip>
  include/asm/srat.h:31:2: error: #error CONFIG_ACPI_SRAT not defined, and srat.h header has been included
  make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1

This can happen with CONFIG_NUMA && !CONFIG_ACPI && !CONFIG_X86_NUMAQ

Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
4e54bdaa9cf55d7e74409ea288b705c144b2627e
Parents
0d673a5a

Changes

1 files changed · +1 −1

FileStatusAddDelContent
include/asm-i386/mmzone.hmodified+1−1View file

include/asm-i386/mmzone.h

View file
diff --git a/include/asm-i386/mmzone.h b/include/asm-i386/mmzone.h
index e33e9f9..22cb07c 100644
--- a/include/asm-i386/mmzone.h
+++ b/include/asm-i386/mmzone.h
@@ -14,7 +14,7 @@ extern struct pglist_data *node_data[];
#ifdef CONFIG_X86_NUMAQ
#include <asm/numaq.h>
-#else /* summit or generic arch */
+#elif defined(CONFIG_ACPI_SRAT)/* summit or generic arch */
#include <asm/srat.h>
#endif