Skip to contentSkip to conversation

uml-i386: fix build breakage with CONFIG_HIGHMEM

PATCH In review Al Viro 2 participants 2 messages Feb 1, 2007

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 uml-i386: fix build breakage with CONFIG_HIGHMEM

missing helper used by arch/i386/mm/highmem.c, which is pulled into build on that configuration.

---
 include/asm-um/pgtable.h |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
include/asm-um/pgtable.h +9 -0
index 188f726..e57ff13 100644
@@ -408,6 +408,15 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
 
 #include <asm-generic/pgtable-nopud.h>
 
+#ifdef CONFIG_HIGHMEM
+/* Clear a kernel PTE and flush it from the TLB */
+#define kpte_clear_flush(ptep, vaddr)					\
+do {									\
+	pte_clear(&init_mm, vaddr, ptep);				\
+	__flush_tlb_one(vaddr);						\
+} while (0)
+#endif
+
 #endif
 #endif
 
Signature · 1 line
1.5.0-rc2.GIT
#1 lore raw
Quoted 4 lines · Al Viro

missing helper used by arch/i386/mm/highmem.c, which is pulled into build on that configuration.

ACK

Jeff

Signature · 1 line
Work email - jdike at linux dot intel dot com