Fix build failure in assigned_device_pci_cap_init ()
PATCH 1/1 Fix build failure in assigned_device_pci_cap_init ()
Hi,
cb1983b880 build fails with
CC x86_64-softmmu/device-assignment.o
/other/srcs/qemu-kvm/hw/device-assignment.c: In function 'assigned_device_pci_cap_init':
/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.
--
hw/device-assignment.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/device-assignment.c +1 -1
@@ -1460,7 +1460,7 @@ static int assigned_device_pci_cap_init(PCIDevice *pci_dev)/* 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 );
Kamalesh
Quoted 11 lines · Kamalesh Babulal
Hi,
cb1983b880 build fails withCC
x86_64-softmmu/device-assignment.o
/other/srcs/qemu-kvm/hw/device-assignment.c: In function 'assigned_device_pci_cap_init':
/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.
Thanks. This has already been fixed in the next branch and should show up in master soon.
Thanks,
Alex