From: Jerone Young <jyoung5-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH] Add ifdefs to libkvm.h to pervent warnings for other archs
Date: Mon, 26 Nov 2007 09:05:50 -0600 [thread overview]
Message-ID: <9749d43f49ca6fa369a9.1196089550@thinkpad> (raw)
# 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/
next reply other threads:[~2007-11-26 15:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-26 15:05 Jerone Young [this message]
2007-11-26 15:16 ` [PATCH] Add ifdefs to libkvm.h to pervent warnings for other archs Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9749d43f49ca6fa369a9.1196089550@thinkpad \
--to=jyoung5-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox