qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix build failure in assigned_device_pci_cap_init ()
@ 2010-12-18 13:01 Kamalesh Babulal
  2010-12-18 13:34 ` [Qemu-devel] " Alex Williamson
  0 siblings, 1 reply; 2+ messages in thread
From: Kamalesh Babulal @ 2010-12-18 13:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: alex.williamson

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.

Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
--
 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 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Qemu-devel] Re: [PATCH] Fix build failure in assigned_device_pci_cap_init ()
  2010-12-18 13:01 [Qemu-devel] [PATCH] Fix build failure in assigned_device_pci_cap_init () Kamalesh Babulal
@ 2010-12-18 13:34 ` Alex Williamson
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Williamson @ 2010-12-18 13:34 UTC (permalink / raw)
  To: Kamalesh Babulal; +Cc: qemu-devel

On Sat, 2010-12-18 at 18:31 +0530, Kamalesh Babulal wrote:
> 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.

Thanks.  This has already been fixed in the next branch and should show
up in master soon.

http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=commitdiff;h=571a2b67f3d6986f768d0623df6d97847e4b153e;hp=9e8caf52f2e9976faf83bfc588102912160ce911

Thanks,

Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-18 13:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-18 13:01 [Qemu-devel] [PATCH] Fix build failure in assigned_device_pci_cap_init () Kamalesh Babulal
2010-12-18 13:34 ` [Qemu-devel] " Alex Williamson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).