Skip to contentSkip to conversation

Add ifdefs to libkvm.h to pervent warnings for other archs

PATCH Applied Jerone Young 2 participants 2 messages Nov 26, 2007 KVM

lore
Share & tools
lore
#0 lore raw

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, in
 
 int 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/

Applied
#1 lore raw
Quoted 11 lines · Jerone Young

# 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.

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/