From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yu Zhiguo Subject: Re: [PATCH] pv-ops: Fix missing 'ifdef CONFIG_XEN' in acpi Date: Tue, 20 Apr 2010 13:31:23 +0800 Message-ID: <4BCD3C2B.3030706@cn.fujitsu.com> References: <4BC7C657.3010609@cn.fujitsu.com> <20100416145604.GC29398@phenom.dumpdata.com> <4BCA82FF.20901@cn.fujitsu.com> <4BCA8E9A.6090209@goop.org> <20100419133026.GA17501@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100419133026.GA17501@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi, Konrad Konrad Rzeszutek Wilk wrote: > > perhaps add: > > #else /* This is for CONFIG_XEN */ > > static inline int xen_register_gsi(...) > { > > } > #endif > > Or maybe better take out the xen_register_gsi out of this double > #ifdef and move it to its own. Say: > > > #if !defined(CONFIG_XEN) > static int xen_register_gsi(..) > > #endif > > >>> ... >>> >> This is a good way of handling it. > > The header file change or the #ifdef in the acpi/boot.c file? Thanks for your explanation, I agree it is also a good idea. But if jeremy think adding #ifdef is ok, I will not fix this patch. -- Regards Yu Zhiguo