From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.osdl.org (fire.osdl.org [65.172.181.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.osdl.org", Issuer "OSDL Hostmaster" (not verified)) by ozlabs.org (Postfix) with ESMTP id 24DA067A3A for ; Mon, 2 May 2005 08:47:25 +1000 (EST) Date: Sun, 1 May 2005 15:46:54 -0700 From: Andrew Morton To: Jesper Juhl Message-Id: <20050501154654.2bf7606d.akpm@osdl.org> In-Reply-To: References: <20050430164303.6538f47c.akpm@osdl.org> <6uu0lnf0gm.fsf@zork.zork.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linuxppc-dev@ozlabs.org, 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: , Jesper Juhl wrote: > > On Sun, 1 May 2005, Sean Neakums wrote: > > > On my Mackertosh (PowerBook5.4), build fails with the following: > > > > fs/proc/task_mmu.c: In function `smaps_pte_range': > > fs/proc/task_mmu.c:177: warning: implicit declaration of function `kmap_atomic' > > fs/proc/task_mmu.c:177: error: `KM_PTE0' undeclared (first use in this function) > > fs/proc/task_mmu.c:177: error: (Each undeclared identifier is reported only once > > fs/proc/task_mmu.c:177: error: for each function it appears in.) > > fs/proc/task_mmu.c:207: warning: implicit declaration of function `kunmap_atomic' > > > > With the naive patch below, it builds with this warning and everything works. > > > > fs/proc/task_mmu.c: In function `smaps_pte_range': > > fs/proc/task_mmu.c:208: warning: passing arg 1 of `kunmap_atomic' makes pointer from integer without a cast > > > > Try this patch : > > Signed-off-by: Jesper Juhl > > --- 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);