From 6cc628f1126f0bea740511c5ccc2f7e4c6374149 Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 15 Jan 2009 13:47:37 +0000 Subject: [PATCH] Kill redundant declaration of smp_cpus and vm_running MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Defined in sysemu.h, included by qemu-kvm.c qemu/qemu-kvm.c:41: warning: redundant redeclaration of ‘smp_cpus’ qemu/sysemu.h:98: warning: previous declaration of ‘smp_cpus’ was here qemu/qemu-kvm.c:219: warning: redundant redeclaration of ‘vm_running’ qemu/sysemu.h:9: warning: previous declaration of ‘vm_running’ was here Signed-off-by: Mark McLoughlin Signed-off-by: Avi Kivity --- qemu-kvm.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index e54ace7b44..7b81d0fc33 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -35,8 +35,6 @@ int kvm_pit_reinject = 1; int kvm_nested = 0; kvm_context_t kvm_context; -extern int smp_cpus; - pthread_mutex_t qemu_mutex = PTHREAD_MUTEX_INITIALIZER; pthread_cond_t qemu_vcpu_cond = PTHREAD_COND_INITIALIZER; pthread_cond_t qemu_system_cond = PTHREAD_COND_INITIALIZER; @@ -213,8 +211,6 @@ int kvm_cpu_exec(CPUState *env) return 0; } -extern int vm_running; - static int has_work(CPUState *env) { if (!vm_running || (env && env->kvm_cpu_state.stopped)) -- 2.11.4.GIT