Commit 04add672 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[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: default avatarAl Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarJeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9d6ed921
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -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