From: Al Viro Date: Thu, 1 Feb 2007 13:53:04 +0000 (+0000) Subject: [PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM X-Git-Tag: v2.6.20~27 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=04add672cf98a788e9e0d753b2ccfa4a3a0caf56;p=linux-2.6-omap-h63xx.git [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 Acked-by: Jeff Dike Signed-off-by: Linus Torvalds --- diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h index 188f7262177..e57ff136ee5 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 +#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