From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Wilcox Subject: Re: [2.6 patch] drivers/acpi: #ifdef unused functions away Date: Thu, 11 Nov 2004 15:40:17 +0000 Message-ID: <20041111154017.GC1108@parcelfarce.linux.theplanet.co.uk> References: <20041105215021.GF1295@stusta.de> <1099707007.13834.1969.camel@d845pe> <20041106114844.GK1295@stusta.de> <418CEE3A.40503@conectiva.com.br> <20041106212917.GP1295@stusta.de> <418D403E.30608@conectiva.com.br> <1099933263.13831.9547.camel@d845pe> <20041110012134.GB4089@stusta.de> <20041111151727.GB1108@parcelfarce.linux.theplanet.co.uk> <20041111153650.GD8417@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20041111153650.GD8417-HeJ8Db2Gnd6zQB+pC5nmwQ@public.gmane.org> Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Adrian Bunk Cc: Matthew Wilcox , Len Brown , Arnaldo Carvalho de Melo , ACPI Developers , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Thu, Nov 11, 2004 at 04:36:50PM +0100, Adrian Bunk wrote: > On Thu, Nov 11, 2004 at 03:17:27PM +0000, Matthew Wilcox wrote: > > On Wed, Nov 10, 2004 at 02:21:34AM +0100, Adrian Bunk wrote: > > > This patch only #ifdef's completely unused code away - it does not make > > > the many global functions only used inside the file they are defined in > > > static. > > > > It also ifdefs out the acpi_install_gpe_handler and acpi_remove_gpe_handler > > calls I use in the driver I posted on Sunday. Please fix this. > > ???? > > My patch doesn't #ifdef these functions away. Sorry, acpi_remove_gpe_block, not acpi_remove_gpe_handler: @@ -383,6 +398,7 @@ acpi_status acpi_remove_gpe_block ( acpi_handle gpe_device); +#endif /* ACPI_FUTURE_USAGE */ -- "Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click