qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: kvm@vger.kernel.org
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] [qemu-kvm PATCH 3/3] make kvm_mutex_*lock static
Date: Thu, 12 Aug 2010 11:29:28 -0400	[thread overview]
Message-ID: <1281626968-5607-4-git-send-email-pbonzini@redhat.com> (raw)
In-Reply-To: <1281626968-5607-1-git-send-email-pbonzini@redhat.com>

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 qemu-kvm.c |    4 ++--
 qemu-kvm.h |    3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/qemu-kvm.c b/qemu-kvm.c
index 96d458c..f46c394 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -1798,13 +1798,13 @@ int kvm_set_irq(int irq, int level, int *status)
 
 #endif
 
-void kvm_mutex_unlock(void)
+static void kvm_mutex_unlock(void)
 {
     assert(!cpu_single_env);
     pthread_mutex_unlock(&qemu_mutex);
 }
 
-void kvm_mutex_lock(void)
+static void kvm_mutex_lock(void)
 {
     pthread_mutex_lock(&qemu_mutex);
     cpu_single_env = NULL;
diff --git a/qemu-kvm.h b/qemu-kvm.h
index c08e9b8..6b26daa 100644
--- a/qemu-kvm.h
+++ b/qemu-kvm.h
@@ -893,9 +893,6 @@ int handle_tpr_access(void *opaque, CPUState *env, uint64_t rip,
 #define qemu_kvm_cpu_stop(env) do {} while(0)
 #endif
 
-void kvm_mutex_unlock(void);
-void kvm_mutex_lock(void);
-
 #ifdef CONFIG_KVM
 
 typedef struct KVMSlot {
-- 
1.7.1

  parent reply	other threads:[~2010-08-12 15:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-12 15:29 [Qemu-devel] [qemu-kvm PATCH 0/3] small qemu-kvm cleanups Paolo Bonzini
2010-08-12 15:29 ` [Qemu-devel] [qemu-kvm PATCH 1/3] move kvm_set_irqfd to kvm-stub.c Paolo Bonzini
2010-08-12 15:29 ` [Qemu-devel] [qemu-kvm PATCH 2/3] remove unused function Paolo Bonzini
2010-08-12 15:29 ` Paolo Bonzini [this message]
2010-08-17 11:29 ` [Qemu-devel] Re: [qemu-kvm PATCH 0/3] small qemu-kvm cleanups Avi Kivity
2010-08-23  6:45   ` Paolo Bonzini
2010-08-23  6:49     ` Avi Kivity
2010-08-23 16:10       ` Cam Macdonell

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=1281626968-5607-4-git-send-email-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).