Add ifdefs to libkvm.h to pervent warnings for other archs
PATCH 1/1 Add ifdefs to libkvm.h to pervent warnings for other archs
# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1196089537 21600
# Node ID 9749d43f49ca6fa369a94e26e85e96e9ca9c999e
# Parent f1f4385ec96bd49d5505292b8676e7937574f355
Add ifdefs to libkvm.h to pervent warnings for other archs
This patch adds ifdefs around x86 specific functions to pervent compilers warnings for other archs.
libkvm/libkvm.h +8 -4
@@ -348,6 +348,7 @@ int kvm_inject_irq(kvm_context_t kvm, inint kvm_guest_debug (kvm_context_t ,int vcpu,struct kvm_debug_guest *dbg); +#if defined(__i386__) || defined(__x86_64__)/*! * \brief Setup a vcpu's cpuid instruction emulation *
@@ -361,6 +362,7 @@ int kvm_guest_debug(kvm_context_t, int v*/ int kvm_setup_cpuid (kvm_context_t kvm,int vcpu,int nent,struct kvm_cpuid_entry *entries); +#endif /*! * \brief Set a vcpu's signal mask for guest mode
@@ -499,6 +501,7 @@ int kvm_get_irqchip(kvm_context_t kvm, s*/ int kvm_set_irqchip (kvm_context_t kvm,struct kvm_irqchip *chip); +#if defined(__i386__) || defined(__x86_64__)/*! * \brief Get in kernel local APIC for vcpu *
@@ -520,7 +523,8 @@ int kvm_get_lapic(kvm_context_t kvm, int* \param s Local apic state of the specific virtual CPU */ int kvm_set_lapic (kvm_context_t kvm,int vcpu,struct kvm_lapic_state *s); - -#endif - -#endif +#endif + +#endif + +#endif
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Avi Kivity
AppliedQuoted 11 lines · Jerone Young
# HG changeset patch
# User Jerone Young <jyoung5-r/[email protected]> # Date 1196089537 21600
# Node ID9749d43f49ca6fa369a94e26e85e96e9ca9c999e
# Parentf1f4385ec96bd49d5505292b8676e7937574f355
Add ifdefs tolibkvm.hto pervent warnings for other archsThis patch adds ifdefs around x86 specific functions to pervent compilers warnings for other archs.
Applied, thanks.
Signature · 7 lines
error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/