* [PATCH] Add ifdefs to libkvm.h to pervent warnings for other archs
@ 2007-11-26 15:05 Jerone Young
2007-11-26 15:16 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Jerone Young @ 2007-11-26 15:05 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
# HG changeset patch
# User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
# 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.
Signed-off-by: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h
--- a/libkvm/libkvm.h
+++ b/libkvm/libkvm.h
@@ -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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Add ifdefs to libkvm.h to pervent warnings for other archs
2007-11-26 15:05 [PATCH] Add ifdefs to libkvm.h to pervent warnings for other archs Jerone Young
@ 2007-11-26 15:16 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-11-26 15:16 UTC (permalink / raw)
To: Jerone Young; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Jerone Young wrote:
> # HG changeset patch
> # User Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
> # 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.
--
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-26 15:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-26 15:05 [PATCH] Add ifdefs to libkvm.h to pervent warnings for other archs Jerone Young
2007-11-26 15:16 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox