cpu: Add missing 'static' attribute to qemu_global_mutex
PATCH 1/1 cpu: Add missing 'static' attribute to qemu_global_mutex
Contrary to its name, 'qemu_global_mutex' is only used locally in cpus.c.
Signed-off-by Stefan Weil <[email protected]>
--- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cpus.c +1 -1
@@ -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;
Signature · 1 line
1.7.10
Stefan Hajnoczi
AppliedQuoted 7 lines · Stefan Weil
Contrary to its name, '
qemu_global_mutex' is only used locally incpus.c.Signed-off-by Stefan Weil <[email protected]>--- cpus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan