[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] Fix build failure in assigned_device_pci_cap_init (

From: Kamalesh Babulal
Subject: [Qemu-devel] [PATCH] Fix build failure in assigned_device_pci_cap_init ()
Date: Sat, 18 Dec 2010 18:31:52 +0530
User-agent: Mutt/1.5.18 (2008-05-17)


        cb1983b880 build fails with

CC    x86_64-softmmu/device-assignment.o
/other/srcs/qemu-kvm/hw/device-assignment.c: In function 
/other/srcs/qemu-kvm/hw/device-assignment.c:1463: error: 
'PCI_PM_CTRL_NO_SOFT_RST' undeclared (first use in this function)
/other/srcs/qemu-kvm/hw/device-assignment.c:1463: error: (Each undeclared 
identifier is reported only once
/other/srcs/qemu-kvm/hw/device-assignment.c:1463: error: for each function it 
appears in.)

I was able to build successfully, with the attached patch.

Signed-off-by: Kamalesh Babulal <address@hidden>
 hw/device-assignment.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/device-assignment.c b/hw/device-assignment.c
index 50c6408..8446cd4 100644
--- a/hw/device-assignment.c
+++ b/hw/device-assignment.c
@@ -1460,7 +1460,7 @@ static int assigned_device_pci_cap_init(PCIDevice 
         /* assign_device will bring the device up to D0, so we don't need
          * to worry about doing that ourselves here. */
         pci_set_word(pci_dev->config + pos + PCI_PM_CTRL,
-                     PCI_PM_CTRL_NO_SOFT_RST);
+                     PCI_PM_CTRL_NO_SOFT_RESET);

         pci_set_byte(pci_dev->config + pos + PCI_PM_PPB_EXTENSIONS, 0);
         pci_set_byte(pci_dev->config + pos + PCI_PM_DATA_REGISTER, 0);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]