diff options
| author | Becky Bruce <beckyb@kernel.crashing.org> | 2009-11-23 07:28:53 -0500 |
|---|---|---|
| committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-11-24 01:00:25 -0500 |
| commit | 2d7cf3ef879b22bdfd271aa3b66733c53279e813 (patch) | |
| tree | 885f2a9e976498a946a98e226a732b07795ef4c6 | |
| parent | 7c31629fd60037c5eb2b8fd0e6def9fe097fa28e (diff) | |
powerpc: Fix DEBUG_HIGHMEM build break from d4515646699
Code was added to mm/higmem.c that depends on several
kmap types that powerpc does not support. We add dummy
invalid definitions for KM_NMI, KM_NM_PTE, and KM_IRQ_PTE.
According to list discussion, this fix should not be needed
anymore starting with 2.6.33. The code is commented to this
effect so hopefully we will remember to remove this.
Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
| -rw-r--r-- | arch/powerpc/include/asm/kmap_types.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kmap_types.h b/arch/powerpc/include/asm/kmap_types.h index b6bac6f61c16..916369575c97 100644 --- a/arch/powerpc/include/asm/kmap_types.h +++ b/arch/powerpc/include/asm/kmap_types.h | |||
| @@ -29,5 +29,16 @@ enum km_type { | |||
| 29 | KM_TYPE_NR | 29 | KM_TYPE_NR |
| 30 | }; | 30 | }; |
| 31 | 31 | ||
| 32 | /* | ||
| 33 | * This is a temporary build fix that (so they say on lkml....) should no longer | ||
| 34 | * be required after 2.6.33, because of changes planned to the kmap code. | ||
| 35 | * Let's try to remove this cruft then. | ||
| 36 | */ | ||
| 37 | #ifdef CONFIG_DEBUG_HIGHMEM | ||
| 38 | #define KM_NMI (-1) | ||
| 39 | #define KM_NMI_PTE (-1) | ||
| 40 | #define KM_IRQ_PTE (-1) | ||
| 41 | #endif | ||
| 42 | |||
| 32 | #endif /* __KERNEL__ */ | 43 | #endif /* __KERNEL__ */ |
| 33 | #endif /* _ASM_POWERPC_KMAP_TYPES_H */ | 44 | #endif /* _ASM_POWERPC_KMAP_TYPES_H */ |
