From: Ewan Mellor Subject: Re: [Xen-changelog] Fix the implicit declaration of function `swiotlb_init' warning, by including Date: Tue, 21 Mar 2006 19:53:57 +0000 Message-ID: <20060321195357.GA6930@leeni.uk.xensource.com> References: <20060321184601.GC6126@granada.merseine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060321184601.GC6126@granada.merseine.nu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Muli Ben-Yehuda Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Mar 21, 2006 at 08:46:01PM +0200, Muli Ben-Yehuda wrote: > On Tue, Mar 21, 2006 at 01:14:15PM +0000, Xen patchbot -unstable wrote: > > > diff -r a013fa6ee37c -r 14c26df4f33c linux-2.6-xen-sparse/arch/i386/mm/init-xen.c > > --- a/linux-2.6-xen-sparse/arch/i386/mm/init-xen.c Tue Mar 21 10:56:11 2006 > > +++ b/linux-2.6-xen-sparse/arch/i386/mm/init-xen.c Tue Mar 21 11:21:08 2006 > > @@ -42,6 +42,11 @@ > > #include > > #include > > #include > > +#if defined(CONFIG_SWIOTLB) > > +#include > > +#include > > +#include > > +#endif > > Hmm, the right way(TM) to do it is as follows (compile tested > only). We're firmly in nit-picking territory, but it's one less thing > that will be pointed out when we finally submit it for upstream > inclusion. > > Signed-off-by: Muli Ben-Yehuda > > diff -r 045bee6e1ebd linux-2.6-xen-sparse/arch/i386/mm/init-xen.c > --- a/linux-2.6-xen-sparse/arch/i386/mm/init-xen.c Tue Mar 21 12:26:38 2006 +0100 > +++ b/linux-2.6-xen-sparse/arch/i386/mm/init-xen.c Tue Mar 21 20:43:54 2006 +0200 > @@ -29,6 +29,8 @@ > #include > #include > #include > +#include > +#include > > #include > #include > @@ -42,11 +44,7 @@ > #include > #include > #include > -#if defined(CONFIG_SWIOTLB) > -#include > -#include > #include > -#endif > > extern unsigned long *contiguous_bitmap; Why, dare I ask? Ewan.