Trivial patches for 27 March to 3 April 2012
Subsystems (2)
PATCH 5/8 main-loop: make qemu_event_handle static
In reply to Stefan HajnocziFrom: Frediano Ziglio <[email protected]>
--- main-loop.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
main-loop.c +1 -1
@@ -164,7 +164,7 @@ static int qemu_signal_init(void)#else /* _WIN32 */ -HANDLE qemu_event_handle =NULL ; +static HANDLE qemu_event_handle =NULL ;static void dummy_event_handler (void *opaque) {
Signature · 1 line
1.7.9.1
PATCH 3/8 qtest: Add missing GCC_FMT_ATTR
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
gcc reports an error when the code is compiled with -Wmissing-format-attribute.
--- qtest.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
qtest.c +2 -1
@@ -156,7 +156,8 @@ static void qtest_send_prefix(CharDriverState *chr) tv.tv_sec, tv.tv_usec); } -static void qtest_send (CharDriverState *chr,const char *fmt, ...) +static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr, + const char *fmt, ...) {va_list ap;char buffer[1024 ];
Signature · 1 line
1.7.9.1
PATCH 1/8 configure: fix mingw32 libs_qga typo
In reply to Stefan HajnocziIt's typical to prepend or append parameters to an argument string so that other places in ./configure can add parameters without clobbering the string. In the mingw32 libs_qga case there is a typo "$lib_qga" instead of "$libs_qga".
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
@@ -526,7 +526,7 @@ EOF bindir="\${prefix}" sysconfdir="\${prefix}" confsuffix="" - libs_qga="-lws2_32 -lwinmm -lpowrprof $lib_qga" + libs_qga="-lws2_32 -lwinmm -lpowrprof $libs_qga" fi werror=""
Signature · 1 line
1.7.9.1
PATCH 2/8 w32: Undefine error constants before their redefinition
In reply to Stefan HajnocziFrom: Jan Kiszka <[email protected]>
Avoids lots of warnings.
--- qemu_socket.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
qemu_socket.h +2 -0
@@ -8,7 +8,9 @@#include <ws2tcpip.h> #define socket_error () WSAGetLastError() +#undef EWOULDBLOCK#undef EINTR +#undef EINPROGRESS#define EWOULDBLOCK WSAEWOULDBLOCK#define EINTR WSAEINTR#define EINPROGRESS WSAEINPROGRESS
Signature · 1 line
1.7.9.1
PATCH 4/8 block/curl: Replace usleep by g_usleep
In reply to Stefan HajnocziFrom: Stefan Weil <[email protected]>
The function usleep is not available for all supported platforms:
at least some versions of MinGW don't support it.
usleep was also declared obsolete by POSIX.1-2001.
The function g_usleep is part of glib2.0, so it is available for all supported platforms.
Using nanosleep would also be possible but needs more code.
--- block/curl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
block/curl.c +1 -1
@@ -282,7 +282,7 @@ static CURLState *curl_init_state(BDRVCURLState *s)break ; }if (!state) { -usleep (100 ); +g_usleep (100 );curl_multi_do (s); } }while (!state);
Signature · 1 line
1.7.9.1
PATCH 6/8 configure: Link QEMU against 'liburcu-bp'
In reply to Stefan HajnocziFrom: Lluís Vilanova <[email protected]>
This library is needed when using 'ust/tracepoint.h'.
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
@@ -2672,7 +2672,7 @@ if test "$trace_backend" = "ust"; then int main(void) { return 0; } EOF if compile_prog "" "" ; then - LIBS="-lust $LIBS" + LIBS="-lust -lurcu-bp $LIBS" else echo echo "Error: Trace backend 'ust' missing libust header files"
Signature · 1 line
1.7.9.1
I'm will be gone from tomorrow until Monday so it's time to flush the trivial-patches queue.
The following changes since commit f05f6b4adb4db3affb0cdd17383b0a7e905e66e1:
qdev: put all devices under /machine (2012-04-02 15:04:15 -0500)
are available in the git repository at:
git://github.com/stefanha/qemu.git trivial-patches
for you to fetch changes up to 53fbf7b5391c76cc474d469bfed6a69a1243f4de:
make: fix clean rule by removing build file in qom/ (2012-04-03 09:55:26 +0100)
----------------------------------------------------------------
Anthony PERARD (1):
make: fix clean rule by removing build file in qom/
Frediano Ziglio (1):
main-loop: make qemu_event_handle static
Jan Kiszka (1):
w32: Undefine error constants before their redefinition
Lluís Vilanova (2):
configure: Link QEMU against 'liburcu-bp'
configure: Link qga against UST tracing related libraries
Stefan Hajnoczi (1):
configure: fix mingw32 libs_qga typo
Stefan Weil (2):
qtest: Add missing GCC_FMT_ATTR
block/curl: Replace usleep by g_usleep
Makefile | 1 + block/curl.c | 2 +- configure | 5 +++-- main-loop.c | 2 +- qemu_socket.h | 2 ++ qtest.c | 3 ++- 6 files changed, 10 insertions(+), 5 deletions(-)
Signature · 1 line
1.7.9.1
PATCH 7/8 configure: Link qga against UST tracing related libraries
From: Lluís Vilanova <[email protected]>
--- configure | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
configure +1 -0
@@ -2673,6 +2673,7 @@ int main(void) { return 0; } EOF if compile_prog "" "" ; then LIBS="-lust -lurcu-bp $LIBS" + libs_qga="-lust -lurcu-bp $libs_qga" else echo echo "Error: Trace backend 'ust' missing libust header files"
Signature · 1 line
1.7.9.1
PATCH 8/8 make: fix clean rule by removing build file in qom/
In reply to Stefan HajnocziFrom: Anthony PERARD <[email protected]>
Make clean does not clean the 'qom' directory, leaving *.o and *.d files. This patch fixes this.
--- Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Makefile +1 -0
@@ -217,6 +217,7 @@ clean: rm -f *.o *.d *.a *.lo $(TOOLS) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~ rm -Rf .libs rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d + rm -f qom/*.o qom/*.d rm -f qemu-img-cmds.h rm -f trace/*.o trace/*.d rm -f trace.c trace.h trace.c-timestamp trace.h-timestamp
Signature · 1 line
1.7.9.1