[ARM] kmap: fix build errors with DEBUG_HIGHMEM enabled
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 18 Nov 2009 18:03:19 +0000 (18:03 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 20 Nov 2009 14:23:36 +0000 (14:23 +0000)
d451564 broke ARM by requiring KM_IRQ_PTE, KM_NMI and KM_NMI_PTE to
always be defined.  Solve this by providing invalid definitions for
these constants, but only if CONFIG_DEBUG_HIGHMEM is enabled.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/kmap_types.h

index d16ec97ec9a9948fbb7de727164a006bfe6eeae7..c019949a5189dc725a937006eb8445c18d0ad2ef 100644 (file)
@@ -22,4 +22,10 @@ enum km_type {
        KM_TYPE_NR
 };
 
+#ifdef CONFIG_DEBUG_HIGHMEM
+#define KM_NMI         (-1)
+#define KM_NMI_PTE     (-1)
+#define KM_IRQ_PTE     (-1)
+#endif
+
 #endif