From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lazybastard.de ([212.112.238.170] helo=longford.logfs.org) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1JvzzB-0000j7-3p for linux-mtd@lists.infradead.org; Tue, 13 May 2008 19:16:30 +0000 Date: Tue, 13 May 2008 21:16:16 +0200 From: =?utf-8?B?SsO2cm4=?= Engel To: Mike Frysinger Subject: Re: [PATCH 1/1] [MTD/MAPS] Blackfin Async Flash Maps: Handle the case where flash memory and ethernet mac/phy are mapped onto the same async bank Message-ID: <20080513191616.GC18026@logfs.org> References: <1210653525-19437-1-git-send-email-cooloney@kernel.org> <20080513080727.GA15795@logfs.org> <8bd0f97a0805130542x46f5e7fejf1347f1c71f567fb@mail.gmail.com> <20080513150143.GA18026@logfs.org> <8bd0f97a0805130815q2ffa1d34ue87f5eb1422b6f42@mail.gmail.com> <20080513153441.GB18026@logfs.org> <8bd0f97a0805131042x2a74115dqc3831a604583bbd5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8bd0f97a0805131042x2a74115dqc3831a604583bbd5@mail.gmail.com> Cc: dwmw2@infradead.org, Bryan Wu , linux-mtd@lists.infradead.org, will.newton@gmail.com, linux-kernel@vger.kernel.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 13 May 2008 13:42:04 -0400, Mike Frysinger wrote: > On Tue, May 13, 2008 at 11:34 AM, Jörn Engel wrote: > > On Tue, 13 May 2008 12:38:45 +0800, Bryan Wu wrote: > > > +#define pr_devinit(fmt, args...) ({ static const __devinitdata char __fmt[] = fmt; printk(__fmt, ## args); }) > > > > That bit is obvious. But why do you use pr_devinit() instead of > > printk()? What does it gain you? > > why do we have __init and __devinit in the first place ? Ah. Now I finally understand what this code does. Might be worth moving it to include/linux/kernel.h, along with pr_init(). And watch an avalanche of janitor patches use these new toys. :) Jörn -- Joern's library part 3: http://inst.eecs.berkeley.edu/~cs152/fa05/handouts/clark-test.pdf