fix compile error of hw/device-assignment.c
PATCH 1/1 fix compile error of hw/device-assignment.c
Fix the following compile error in next tree:
CC x86_64-softmmu/device-assignment.ohw/device-assignment.c: In function ‘assigned_device_pci_cap_init’:hw/device-assignment.c:1463: error: ‘PCI_PM_CTRL_NO_SOFT_RST’ undeclared (first use in this function) hw/device-assignment.c:1463: error: (Each undeclared identifier is reported only once hw/device-assignment.c:1463: error: for each function it appears in.)
--- 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 );
Signature · 1 line
1.7.0.4
Quoted 8 lines · Wei Yongjun
Fix the following compile error in next tree:
CCx86_64-softmmu/device-assignment.ohw/device-assignment.c: In function ‘assigned_device_pci_cap_init’:hw/device-assignment.c:1463: error: ‘PCI_PM_CTRL_NO_SOFT_RST’ undeclared (first use in this function)hw/device-assignment.c:1463: error: (Each undeclared identifier is reported only oncehw/device-assignment.c:1463: error: for each function it appears in.)Signed-off-by Wei Yongjun <[email protected]>
Interesting, my build environment was finding RST somewhere. Thanks for the fix.
Quoted 17 lines
--- 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 );
Avi Kivity
AppliedQuoted 7 lines · Wei Yongjun
Fix the following compile error in next tree:
CCx86_64-softmmu/device-assignment.ohw/device-assignment.c: In function ‘assigned_device_pci_cap_init’:hw/device-assignment.c:1463: error: ‘PCI_PM_CTRL_NO_SOFT_RST’ undeclared (first use in this function)hw/device-assignment.c:1463: error: (Each undeclared identifier is reported only oncehw/device-assignment.c:1463: error: for each function it appears in.)
Applied, thanks.
Signature · 1 line
error compiling committee.c: too many arguments to function