thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
ae23c9
From f671c509afc918070a550bda393d92bd197c5cab Mon Sep 17 00:00:00 2001
ae23c9
From: John Snow <jsnow@redhat.com>
ae23c9
Date: Tue, 10 Jul 2018 23:06:14 +0200
ae23c9
Subject: [PATCH 205/268] ahci: trim signatures on raise/lower
ae23c9
ae23c9
RH-Author: John Snow <jsnow@redhat.com>
ae23c9
Message-id: <20180710230616.11000-2-jsnow@redhat.com>
ae23c9
Patchwork-id: 81295
ae23c9
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 1/3] ahci: trim signatures on raise/lower
ae23c9
Bugzilla: 1584914
ae23c9
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
ae23c9
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
ae23c9
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
ae23c9
ae23c9
These functions work on the AHCI device, not the individual
ae23c9
AHCI devices, so trim the AHCIDevice argument.
ae23c9
ae23c9
Signed-off-by: John Snow <jsnow@redhat.com>
ae23c9
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
ae23c9
Reviewed-by: Jeff Cody <jcody@redhat.com>
ae23c9
Message-id: 20180531004323.4611-2-jsnow@redhat.com
ae23c9
Signed-off-by: John Snow <jsnow@redhat.com>
ae23c9
(cherry picked from commit dc5a43eda68fff32c7b0b43847332db325b094f3)
ae23c9
Signed-off-by: John Snow <jsnow@redhat.com>
ae23c9
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
ae23c9
---
ae23c9
 hw/ide/ahci.c | 8 ++++----
ae23c9
 1 file changed, 4 insertions(+), 4 deletions(-)
ae23c9
ae23c9
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
ae23c9
index e22d7be..b7a6f68 100644
ae23c9
--- a/hw/ide/ahci.c
ae23c9
+++ b/hw/ide/ahci.c
ae23c9
@@ -131,7 +131,7 @@ static uint32_t  ahci_port_read(AHCIState *s, int port, int offset)
ae23c9
     return val;
ae23c9
 }
ae23c9
 
ae23c9
-static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)
ae23c9
+static void ahci_irq_raise(AHCIState *s)
ae23c9
 {
ae23c9
     DeviceState *dev_state = s->container;
ae23c9
     PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state),
ae23c9
@@ -146,7 +146,7 @@ static void ahci_irq_raise(AHCIState *s, AHCIDevice *dev)
ae23c9
     }
ae23c9
 }
ae23c9
 
ae23c9
-static void ahci_irq_lower(AHCIState *s, AHCIDevice *dev)
ae23c9
+static void ahci_irq_lower(AHCIState *s)
ae23c9
 {
ae23c9
     DeviceState *dev_state = s->container;
ae23c9
     PCIDevice *pci_dev = (PCIDevice *) object_dynamic_cast(OBJECT(dev_state),
ae23c9
@@ -174,9 +174,9 @@ static void ahci_check_irq(AHCIState *s)
ae23c9
     trace_ahci_check_irq(s, old_irq, s->control_regs.irqstatus);
ae23c9
     if (s->control_regs.irqstatus &&
ae23c9
         (s->control_regs.ghc & HOST_CTL_IRQ_EN)) {
ae23c9
-            ahci_irq_raise(s, NULL);
ae23c9
+            ahci_irq_raise(s);
ae23c9
     } else {
ae23c9
-        ahci_irq_lower(s, NULL);
ae23c9
+        ahci_irq_lower(s);
ae23c9
     }
ae23c9
 }
ae23c9
 
ae23c9
-- 
ae23c9
1.8.3.1
ae23c9