* [PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM
@ 2007-02-01 13:53 Al Viro
2007-02-01 16:56 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Al Viro @ 2007-02-01 13:53 UTC (permalink / raw)
To: torvalds; +Cc: jdike, linux-kernel
missing helper used by arch/i386/mm/highmem.c, which is pulled
into build on that configuration.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
include/asm-um/pgtable.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h
index 188f726..e57ff13 100644
--- a/include/asm-um/pgtable.h
+++ b/include/asm-um/pgtable.h
@@ -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
--
1.5.0-rc2.GIT
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-01 17:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-01 13:53 [PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM Al Viro
2007-02-01 16:56 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox