Patchwork [qemu-kvm,3/3] make kvm_mutex_*lock static

login
register
mail settings
Submitter Paolo Bonzini
Date Aug. 12, 2010, 3:29 p.m.
Message ID <1281626968-5607-4-git-send-email-pbonzini@redhat.com>
Download mbox | patch
Permalink /patch/61623/
State New
Headers show

Comments

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

Patch

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 {