From: Simon Horman Subject: Re: [PATCH] ioemu: unmap INTx interrupt on hot-remove Date: Mon, 30 Mar 2009 08:44:51 +1100 Message-ID: <20090329214451.GB21587@verge.net.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Yuji Shimada , "xen-devel@lists.xensource.com" , "Cui, Dexuan" List-Id: xen-devel@lists.xenproject.org On Fri, Mar 27, 2009 at 08:54:33AM +0000, Keir Fraser wrote: > On 27/03/2009 07:29, "Cui, Dexuan" wrote: > > >> +char mapped_machine_irq[PT_NR_IRQS] = {0}; > > My understanding is: > > This does ensure all the elements of the array are 0, no matter the array is > > global or local. Because in C99's 6.7.8 Initialization, we can find > > Dexuan is correct. If you specify an incomplete initializer, the unspecified > data values default to zero. Thanks, I wasn't aware of that. -- Simon Horman VA Linux Systems Japan K.K., Sydney, Australia Satellite Office H: www.vergenet.net/~horms/ W: www.valinux.co.jp/en