From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH] ARCH_HAS_DEV_MEM_MMAP_MEM fix Date: Fri, 01 Dec 2006 09:56:41 +0000 Message-ID: References: <1164926187.6117.29.camel@lappy> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1164926187.6117.29.camel@lappy> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Alex Williamson Cc: xen-devel List-Id: xen-devel@lists.xenproject.org On 30/11/06 22:36, "Alex Williamson" wrote: > We can't really define our own mmap_mem external from > driver/xen/char/mem.c as long as drivers/char/mem.c is defining a static > version. Patch below solves the problem. Thanks, mmap_mem() in drivers/char/mem.c is still used by mmap_kmem(). We'll get a compile warning if the local static definition of mmap_mem() is removed (plus I think the native mmap_mem is the right one to use for mmap_kmem, at least on x86). Perhaps we should rename the Xen mmap_mem to xen_mmap_mem? -- Keir