Skip to content

Commit

Permalink
[PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM
Browse files Browse the repository at this point in the history
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>
Acked-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Feb 2, 2007
1 parent 9d6ed92 commit 04add67
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/asm-um/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 04add67

Please sign in to comment.