2007-02-01 13:53:18

by Al Viro

[permalink] [raw]
Subject: [PATCH] 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.

Signed-off-by: Al Viro <[email protected]>
---
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


2007-02-01 17:03:59

by Jeff Dike

[permalink] [raw]
Subject: Re: [PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM

On Thu, Feb 01, 2007 at 01:53:04PM +0000, Al Viro wrote:
> missing helper used by arch/i386/mm/highmem.c, which is pulled
> into build on that configuration.
>
> Signed-off-by: Al Viro <[email protected]>

ACK

Jeff

--
Work email - jdike at linux dot intel dot com