From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH] tdfxfb: fix section mismatch warnings Date: Sat, 12 Jan 2008 03:54:42 -0800 Message-ID: <20080112035442.667d39ce.akpm@linux-foundation.org> References: <20080111170353.c28970f8.rdunlap@xenotime.net> <20080112052257.afe963fe.krzysztof.h1@poczta.fm> Reply-To: linux-fbdev-devel@lists.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1JDexA-0007XO-EC for linux-fbdev-devel@lists.sourceforge.net; Sat, 12 Jan 2008 03:55:08 -0800 Received: from smtp2.linux-foundation.org ([207.189.120.14]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1JDex9-0001ej-5H for linux-fbdev-devel@lists.sourceforge.net; Sat, 12 Jan 2008 03:55:08 -0800 In-Reply-To: <20080112052257.afe963fe.krzysztof.h1@poczta.fm> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-fbdev-devel-bounces@lists.sourceforge.net Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: Krzysztof Helt Cc: hmallat@cc.hut.fi, samr , Randy Dunlap , linux-fbdev-devel@lists.sourceforge.net, adaplas@gmail.com On Sat, 12 Jan 2008 05:22:57 +0100 Krzysztof Helt wrote: > On Fri, 11 Jan 2008 17:03:53 -0800 > Randy Dunlap wrote: > > > From: Randy Dunlap > > > > tdfxfb_setup() can be __devinit. This fixes the modpost section mismatch > > warnings: > > > > > > #ifndef MODULE > > -static void tdfxfb_setup(char *options) > > +static void __devinit tdfxfb_setup(char *options) > > { > > char *this_opt; > > It should be rather in the __init section, as it is called only > from the function below: > > static int __init tdfxfb_init(void) > yup. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace