Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422880AbXBANxS (ORCPT ); Thu, 1 Feb 2007 08:53:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422884AbXBANxJ (ORCPT ); Thu, 1 Feb 2007 08:53:09 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:40180 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422888AbXBANxF (ORCPT ); Thu, 1 Feb 2007 08:53:05 -0500 To: torvalds@linux-foundation.org Subject: [PATCH] uml-i386: fix build breakage with CONFIG_HIGHMEM Cc: jdike@addtoit.com, linux-kernel@vger.kernel.org Message-Id: From: Al Viro Date: Thu, 01 Feb 2007 13:53:04 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1042 Lines: 37 missing helper used by arch/i386/mm/highmem.c, which is pulled into build on that configuration. Signed-off-by: Al Viro --- 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 +#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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/