From d30f94321024d71b1e3fd102be99bada390bfce0 Mon Sep 17 00:00:00 2001 From: Hollis Blanchard Date: Fri, 1 May 2009 17:45:57 -0500 Subject: [PATCH] Fix "missing prototype" warning. As far as I can see, kvm_destroy_memory_region_works() has nothing to do with KVM_CAP_DEVICE_ASSIGNMENT, so move the prototype outside that ifdef block. Signed-off-by: Hollis Blanchard Signed-off-by: Avi Kivity --- kvm/libkvm/libkvm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvm/libkvm/libkvm.h b/kvm/libkvm/libkvm.h index ce6f054da4..c23d37b915 100644 --- a/kvm/libkvm/libkvm.h +++ b/kvm/libkvm/libkvm.h @@ -739,6 +739,7 @@ int kvm_assign_irq(kvm_context_t kvm, int kvm_deassign_irq(kvm_context_t kvm, struct kvm_assigned_irq *assigned_irq); #endif +#endif /*! * \brief Determines whether destroying memory regions is allowed @@ -748,7 +749,6 @@ int kvm_deassign_irq(kvm_context_t kvm, * \param kvm Pointer to the current kvm_context */ int kvm_destroy_memory_region_works(kvm_context_t kvm); -#endif #ifdef KVM_CAP_DEVICE_DEASSIGNMENT /*! -- 2.11.4.GIT