From 3158f4a51894e46ecb593bffbfd12824e1d6534a Mon Sep 17 00:00:00 2001 From: Yonghee Han Date: Wed, 27 Jul 2016 16:40:17 +0900 Subject: Imported Upstream version 2.4.1 Change-Id: I0b584f569cb0e0f4eac13cdb79e110c2dbc34bfc --- stubs/Makefile.objs | 1 - stubs/arch-query-cpu-def.c | 2 +- stubs/dump.c | 1 - stubs/iothread-lock.c | 5 +++++ stubs/mon-is-qmp.c | 6 ++++-- stubs/mon-set-error.c | 8 -------- stubs/set-fd-handler.c | 3 +-- 7 files changed, 11 insertions(+), 15 deletions(-) delete mode 100644 stubs/mon-set-error.c (limited to 'stubs') diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 8beff4c73..9937a1295 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -21,7 +21,6 @@ stub-obj-y += machine-init-done.o stub-obj-y += migr-blocker.o stub-obj-y += mon-is-qmp.o stub-obj-y += mon-printf.o -stub-obj-y += mon-set-error.o stub-obj-y += monitor-init.o stub-obj-y += notify-event.o stub-obj-$(CONFIG_SPICE) += qemu-chr-open-spice.o diff --git a/stubs/arch-query-cpu-def.c b/stubs/arch-query-cpu-def.c index 22e0b43de..a975ab453 100644 --- a/stubs/arch-query-cpu-def.c +++ b/stubs/arch-query-cpu-def.c @@ -4,6 +4,6 @@ CpuDefinitionInfoList *arch_query_cpu_definitions(Error **errp) { - error_set(errp, QERR_UNSUPPORTED); + error_setg(errp, QERR_UNSUPPORTED); return NULL; } diff --git a/stubs/dump.c b/stubs/dump.c index fac70191e..8c24eda84 100644 --- a/stubs/dump.c +++ b/stubs/dump.c @@ -13,7 +13,6 @@ #include "qemu-common.h" #include "sysemu/dump-arch.h" -#include "qapi/qmp/qerror.h" #include "qmp-commands.h" int cpu_get_dump_info(ArchDumpInfo *info, diff --git a/stubs/iothread-lock.c b/stubs/iothread-lock.c index 5d8aca1b3..dda6f6b58 100644 --- a/stubs/iothread-lock.c +++ b/stubs/iothread-lock.c @@ -1,6 +1,11 @@ #include "qemu-common.h" #include "qemu/main-loop.h" +bool qemu_mutex_iothread_locked(void) +{ + return true; +} + void qemu_mutex_lock_iothread(void) { } diff --git a/stubs/mon-is-qmp.c b/stubs/mon-is-qmp.c index 1f0a8fd98..dd26f19c8 100644 --- a/stubs/mon-is-qmp.c +++ b/stubs/mon-is-qmp.c @@ -1,7 +1,9 @@ #include "qemu-common.h" #include "monitor/monitor.h" -int monitor_cur_is_qmp(void) +Monitor *cur_mon; + +bool monitor_cur_is_qmp(void) { - return 0; + return false; } diff --git a/stubs/mon-set-error.c b/stubs/mon-set-error.c deleted file mode 100644 index d0411f97f..000000000 --- a/stubs/mon-set-error.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "qemu-common.h" -#include "monitor/monitor.h" - -Monitor *cur_mon; - -void monitor_set_error(Monitor *mon, QError *qerror) -{ -} diff --git a/stubs/set-fd-handler.c b/stubs/set-fd-handler.c index fc874d33f..a8481bc3c 100644 --- a/stubs/set-fd-handler.c +++ b/stubs/set-fd-handler.c @@ -1,8 +1,7 @@ #include "qemu-common.h" #include "qemu/main-loop.h" -int qemu_set_fd_handler2(int fd, - IOCanReadHandler *fd_read_poll, +void qemu_set_fd_handler(int fd, IOHandler *fd_read, IOHandler *fd_write, void *opaque) -- cgit v1.2.3