Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964792AbWAQUDw (ORCPT ); Tue, 17 Jan 2006 15:03:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964791AbWAQUDw (ORCPT ); Tue, 17 Jan 2006 15:03:52 -0500 Received: from linux01.gwdg.de ([134.76.13.21]:22924 "EHLO linux01.gwdg.de") by vger.kernel.org with ESMTP id S964792AbWAQUDv (ORCPT ); Tue, 17 Jan 2006 15:03:51 -0500 Date: Tue, 17 Jan 2006 21:03:45 +0100 (MET) From: Jan Engelhardt To: Ismail Donmez cc: linux-kernel@vger.kernel.org, Keith Owens Subject: Re: Suggested janitor task - remove __init/__exit from function prototypes In-Reply-To: <200601171901.57621.ismail@uludag.org.tr> Message-ID: References: <31582.1137291095@ocs3.ocs.com.au> <200601171901.57621.ismail@uludag.org.tr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 782 Lines: 21 >> >Some function prototypes (in both .h and .c files) specify attributes >> >like __init and __exit in the prototype. gcc (at least at 3.3.3) uses >> >the last such attribute that is actually specified, without issuing a >> >warning. >> >> How does gcc 2.95 handle it, requiring __init in both spots? > >gcc 3.2 is now required for mainline kernel. > Sure, but I asked because I maintain one piece of code (ttyrpld) that should compile for both 2.4 and 2.6. OTOH, I could use it to make people convert to 2.6 ;-) Jan Engelhardt -- - 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/