Received: from eggs.gnu.org ([208.118.235.92]:59804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOBjU-0006sP-Ee for qemu-devel@nongnu.org; Tue, 16 Oct 2012 14:19:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOBjS-0002av-OD for qemu-devel@nongnu.org; Tue, 16 Oct 2012 14:19:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOBjS-0002ah-Fx for qemu-devel@nongnu.org; Tue, 16 Oct 2012 14:19:10 -0400 Date: Tue, 16 Oct 2012 15:20:02 -0300 From: Eduardo Habkost Message-ID: <20121016182002.GN22722@otherpad.lan.raisama.net> References: <1350352644-14436-1-git-send-email-imammedo@redhat.com> <1350352644-14436-4-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1350352644-14436-4-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH 03/12] qdev: separate core from the code used only by qemu-system-* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: pbonzini@redhat.com, aliguori@us.ibm.com, qemu-devel@nongnu.org, afaerber@suse.de On Tue, Oct 16, 2012 at 03:57:15AM +0200, Igor Mammedov wrote: [...] > @@ -0,0 +1,68 @@ > +#include "qdev.h" > + > +void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler handler, int n) > +{ > + assert(dev->num_gpio_in == 0); > + dev->num_gpio_in = n; > + dev->gpio_in = qemu_allocate_irqs(handler, dev, n); > +} > + [...] > -void qdev_init_gpio_in(DeviceState *dev, qemu_irq_handler handler, int n) > -{ > - dev->gpio_in = qemu_extend_irqs(dev->gpio_in, dev->num_gpio_in, handler, > - dev, n); > - dev->num_gpio_in += n; > -} Oops. It looks like you rebased but kept the old code. I will fix this in the next version. -- Eduardo