diff options
author | David 'Digit' Turner <digit@android.com> | 2010-09-13 02:47:01 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2010-09-13 02:47:01 -0700 |
commit | c34e8dccc303243ff996aadcf3d7e407bb74e536 (patch) | |
tree | 43daa00f339656a9e406a4330ac15572c79fe3d6 /vl-android.c | |
parent | f290f4e361473fb696952f4b0c42865032d6558d (diff) | |
download | external_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-android.c')
-rw-r--r-- | vl-android.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/vl-android.c b/vl-android.c index b84cd22..8b3241c 100644 --- a/vl-android.c +++ b/vl-android.c @@ -526,20 +526,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 */ @@ -1342,6 +1328,7 @@ int drive_init(struct drive_opt *arg, int snapshot, void *opaque) case IF_VIRTIO: break; case IF_COUNT: + case IF_NONE: abort(); } if (!file[0]) @@ -2480,6 +2467,7 @@ static void qemu_system_vmstop_request(int reason) #ifndef _WIN32 static int io_thread_fd = -1; +#if 0 static void qemu_event_increment(void) { static const char byte = 0; @@ -2489,6 +2477,7 @@ static void qemu_event_increment(void) write(io_thread_fd, &byte, sizeof(byte)); } +#endif static void qemu_event_read(void *opaque) { @@ -2802,7 +2791,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); @@ -2812,7 +2801,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); } @@ -3167,6 +3156,7 @@ static void tcg_cpu_exec(void) } } +#if 0 static int cpu_has_work(CPUState *env) { if (env->stop) @@ -3189,7 +3179,7 @@ static int tcg_has_work(void) return 1; return 0; } - +#endif static int vm_can_run(void) { |