From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from MTVMIME01.enterprise.veritas.com (bay-bridge.veritas.com [143.127.3.10]) by ozlabs.org (Postfix) with ESMTP id F411E67B46 for ; Mon, 2 May 2005 20:25:09 +1000 (EST) Date: Mon, 2 May 2005 11:14:45 +0100 (BST) From: Hugh Dickins To: Andrew Morton In-Reply-To: <20050501154654.2bf7606d.akpm@osdl.org> Message-ID: References: <20050430164303.6538f47c.akpm@osdl.org> <6uu0lnf0gm.fsf@zork.zork.net> <20050501154654.2bf7606d.akpm@osdl.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: rbrito@ime.usp.br, linuxppc-dev@ozlabs.org, Jesper Juhl , linux-kernel@vger.kernel.org Subject: Re: 2.6.12-rc3-mm2: ppc pte_offset_map() List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sun, 1 May 2005, Andrew Morton wrote: > Jesper Juhl wrote: > > > > --- linux-2.6.12-rc3-mm2-orig/fs/proc/task_mmu.c 2005-05-01 04:04:25.000000000 +0200 > > +++ linux-2.6.12-rc3-mm2/fs/proc/task_mmu.c 2005-05-01 17:49:14.000000000 +0200 > > @@ -2,6 +2,7 @@ > > #include > > #include > > #include > > +#include > > > > #include > > #include > > @@ -204,7 +205,7 @@ static void smaps_pte_range(pmd_t *pmd, > > } > > } > > } while (address < end); > > - pte_unmap(pte); > > + pte_unmap((void *)pte); > > } > > Should be > > pte_unmap(ptep); Almost. Should be pte_unmap(ptep - 1);