From: Muli Ben-Yehuda Subject: Re: [Xen-changelog] Fix the implicit declaration of function `swiotlb_init' warning, by including Date: Tue, 21 Mar 2006 22:49:46 +0200 Message-ID: <20060321204946.GO6126@granada.merseine.nu> References: <20060321184601.GC6126@granada.merseine.nu> <20060321195357.GA6930@leeni.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <20060321195357.GA6930@leeni.uk.xensource.com> Content-disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Mar 21, 2006 at 07:53:57PM +0000, Ewan Mellor wrote: > > Why, dare I ask? There are two conventions here: no #ifdefs in C files if possible, and #include comes before #include . The first one helps readability and maintainability, the second one helps readability and stems from letting arch specific include files overrride generic include files. But really, it's just the accepted kernel idiom, and if we want upstream inclusion, it pays to play by the rules. Cheers, Muli -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/