From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Yongjun Subject: [PATCH] [qemu-kvm-next-tree] fix compile error of hw/device-assignment.c Date: Thu, 09 Dec 2010 14:43:14 +0800 Message-ID: <4D007A82.8030604@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: alex.williamson@redhat.com, kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:51461 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753426Ab0LIGna convert rfc822-to-8bit (ORCPT ); Thu, 9 Dec 2010 01:43:30 -0500 Sender: kvm-owner@vger.kernel.org List-ID: =46ix the following compile error in next tree: CC x86_64-softmmu/device-assignment.o hw/device-assignment.c: In function =A1=AEassigned_device_pci_cap_init=A1= =AF: hw/device-assignment.c:1463: error: =A1=AEPCI_PM_CTRL_NO_SOFT_RST=A1=AF= undeclared (first use in this function) hw/device-assignment.c:1463: error: (Each undeclared identifier is repo= rted only once hw/device-assignment.c:1463: error: for each function it appears in.) Signed-off-by: Wei Yongjun --- 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= *pci_dev) /* assign_device will bring the device up to D0, so we don't n= eed * 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); =20 pci_set_byte(pci_dev->config + pos + PCI_PM_PPB_EXTENSIONS, 0)= ; pci_set_byte(pci_dev->config + pos + PCI_PM_DATA_REGISTER, 0); --=20 1.7.0.4