Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261338AbVBVX35 (ORCPT ); Tue, 22 Feb 2005 18:29:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261336AbVBVX35 (ORCPT ); Tue, 22 Feb 2005 18:29:57 -0500 Received: from fire.osdl.org ([65.172.181.4]:29914 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S261330AbVBVX3q (ORCPT ); Tue, 22 Feb 2005 18:29:46 -0500 Date: Tue, 22 Feb 2005 15:34:56 -0800 From: Andrew Morton To: Jes Sorensen Cc: matthew@wil.cx, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [patch -mm series] ia64 specific /dev/mem handlers Message-Id: <20050222153456.502c3907.akpm@osdl.org> In-Reply-To: References: <16923.193.128608.607599@jaguar.mkp.net> <20050222020309.4289504c.akpm@osdl.org> <20050222175225.GK28741@parcelfarce.linux.theplanet.co.uk> <20050222112513.4162860d.akpm@osdl.org> X-Mailer: Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-vine-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1066 Lines: 31 Jes Sorensen wrote: > > After applying the clue 2x4 to my head a couple of times, I came up > with this patch. Hopefully it will work a bit better ;-) > I know it's repetitious, but it's nice to maintain a changelog entry along with the patch. Especially when seventy people have asked "wtf is this patch for?". Implementation-wise, do you really need to clone-and-own the mem.c functions? Would it not be sufficient to do ptr = arch_translate_mem_ptr(page, ptr); inside mem.c? > + * arch/ia64/kernel/mem.c > ... > +extern loff_t memory_lseek(struct file * file, loff_t offset, int orig); > +extern int mmap_kmem(struct file * file, struct vm_area_struct * vma); > +extern int open_port(struct inode * inode, struct file * filp); > + Please find a .h file for the function prototypes. - 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/