Patchwork [03/12] cpu: Add missing 'static' attribute to qemu_global_mutex

login
register
mail settings
Submitter Stefan Hajnoczi
Date Oct. 5, 2012, 2 p.m.
Message ID <1349445632-23674-4-git-send-email-stefanha@gmail.com>
Download mbox | patch
Permalink /patch/189484/
State New
Headers show

Comments

Stefan Hajnoczi - Oct. 5, 2012, 2 p.m.
From: Stefan Weil <sw@weilnetz.de>

Contrary to its name, 'qemu_global_mutex' is only used locally
in cpus.c.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
---
 cpus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/cpus.c b/cpus.c
index 4b726ef..1d5d490 100644
--- a/cpus.c
+++ b/cpus.c
@@ -613,7 +613,7 @@  static void qemu_tcg_init_cpu_signals(void)
 }
 #endif /* _WIN32 */
 
-QemuMutex qemu_global_mutex;
+static QemuMutex qemu_global_mutex;
 static QemuCond qemu_io_proceeded_cond;
 static bool iothread_requesting_mutex;