aboutsummaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-09-13 02:47:01 -0700
committerDavid 'Digit' Turner <digit@android.com>2010-09-13 02:47:01 -0700
commitc34e8dccc303243ff996aadcf3d7e407bb74e536 (patch)
tree43daa00f339656a9e406a4330ac15572c79fe3d6 /vl.c
parentf290f4e361473fb696952f4b0c42865032d6558d (diff)
downloadexternal_qemu-c34e8dccc303243ff996aadcf3d7e407bb74e536.zip
external_qemu-c34e8dccc303243ff996aadcf3d7e407bb74e536.tar.gz
external_qemu-c34e8dccc303243ff996aadcf3d7e407bb74e536.tar.bz2
Fix build and remove compiler warnings in vl-android.c
Change-Id: Ic8b1b067c8716a12a0d3b24c422865920b95c82a
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/vl.c b/vl.c
index 063f6a9..3069a9c 100644
--- a/vl.c
+++ b/vl.c
@@ -376,20 +376,6 @@ void hw_error(const char *fmt, ...)
abort();
}
-static void set_proc_name(const char *s)
-{
-#if defined(__linux__) && defined(PR_SET_NAME)
- char name[16];
- if (!s)
- return;
- name[sizeof(name) - 1] = 0;
- strncpy(name, s, sizeof(name));
- /* Could rewrite argv[0] too, but that's a bit more complicated.
- This simple way is enough for `top'. */
- prctl(PR_SET_NAME, name);
-#endif
-}
-
/***************/
/* ballooning */
@@ -2727,7 +2713,7 @@ static void qemu_signal_lock(unsigned int msecs)
qemu_mutex_unlock(&qemu_fair_mutex);
}
-static void qemu_mutex_lock_iothread(void)
+void qemu_mutex_lock_iothread(void)
{
if (kvm_enabled()) {
qemu_mutex_lock(&qemu_fair_mutex);
@@ -2737,7 +2723,7 @@ static void qemu_mutex_lock_iothread(void)
qemu_signal_lock(100);
}
-static void qemu_mutex_unlock_iothread(void)
+void qemu_mutex_unlock_iothread(void)
{
qemu_mutex_unlock(&qemu_global_mutex);
}
@@ -3054,6 +3040,7 @@ static void tcg_cpu_exec(void)
}
}
+#if 0
static int cpu_has_work(CPUState *env)
{
if (env->stop)
@@ -3076,7 +3063,7 @@ static int tcg_has_work(void)
return 1;
return 0;
}
-
+#endif
static int vm_can_run(void)
{