From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOQ0f-0001If-AD for qemu-devel@nongnu.org; Thu, 31 May 2018 12:01:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOQ0e-00012c-Dl for qemu-devel@nongnu.org; Thu, 31 May 2018 12:01:05 -0400 Date: Thu, 31 May 2018 12:00:51 -0400 From: Jeff Cody Message-ID: <20180531160051.GA11303@localhost.localdomain> References: <20180531004323.4611-1-jsnow@redhat.com> <20180531004323.4611-2-jsnow@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180531004323.4611-2-jsnow@redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 1/3] ahci: trim signatures on raise/lower List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org On Wed, May 30, 2018 at 08:43:21PM -0400, John Snow wrote: > These functions work on the AHCI device, not the individual > AHCI devices, so trim the AHCIDevice argument. > > Signed-off-by: John Snow > --- > hw/ide/ahci.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c > index e22d7be05f..b7a6f68790 100644 > --- a/hw/ide/ahci.c > +++ b/hw/ide/ahci.c > @@ -131,7 +131,7 @@ static uint32_t ahci_port_read(AHCIState *s, int port, int offset) > return val; > } > > -static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev) > +static void ahci_irq_raise(AHCIState *s) > { > DeviceState *dev_state = s->container; > PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state), > @@ -146,7 +146,7 @@ static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev) > } > } > > -static void ahci_irq_lower(AHCIState *s, AHCIDevice *dev) > +static void ahci_irq_lower(AHCIState *s) > { > DeviceState *dev_state = s->container; > PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state), > @@ -174,9 +174,9 @@ static void ahci_check_irq(AHCIState *s) > trace_ahci_check_irq(s, old_irq, s->control_regs.irqstatus); > if (s->control_regs.irqstatus && > (s->control_regs.ghc & HOST_CTL_IRQ_EN)) { > - ahci_irq_raise(s, NULL); > + ahci_irq_raise(s); > } else { > - ahci_irq_lower(s, NULL); > + ahci_irq_lower(s); > } > } > > -- > 2.14.3 > > Reviewed-by: Jeff Cody