All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011
@ 2011-10-26 14:22 Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 01/10] device_tree: Fix potential memory leak Stefan Hajnoczi
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi

The following changes since commit d300854b1ccd036e0d7c58d789f4ab8d372263e6:

  target-sparc: Fix use of g_new0 / g_free (2011-10-25 19:30:33 +0000)

are available in the git repository at:
  ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches

Bernhard Reutner-Fischer (1):
      Documentation: fix typo

Hervé Poussineau (1):
      Fix typo: buf -> bus

Max Filippov (1):
      ahci: fix DPRINTF format strings

Paolo Bonzini (1):
      tools: reorganize Makefile variables

Pavel Borzenkov (4):
      vmdk: remove unneeded variable assignment
      vmdk: vmdk_read_cid returns garbage if p_name is NULL
      qed: don't pass NULL to memcpy
      qed: remove unneeded variable assignment

Stefan Weil (1):
      device_tree: Fix potential memory leak

陳韋任 (1):
      exec.c: Remove useless comment

 Makefile      |   32 +++++++++++++++-----------------
 Makefile.objs |    8 ++++----
 block/qed.c   |    7 ++++---
 block/vmdk.c  |    3 +--
 device_tree.c |    1 +
 exec.c        |    1 -
 hw/audiodev.h |    2 +-
 hw/ide/ahci.c |   16 ++++++++++------
 qemu-doc.texi |    2 +-
 9 files changed, 37 insertions(+), 35 deletions(-)

-- 
1.7.7

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 01/10] device_tree: Fix potential memory leak
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 02/10] vmdk: remove unneeded variable assignment Stefan Hajnoczi
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Weil, Anthony Liguori, Stefan Hajnoczi

From: Stefan Weil <sw@weilnetz.de>

cppcheck error report:

device_tree.c:156: error: Memory leak: dupname

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 device_tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/device_tree.c b/device_tree.c
index dc69232..86a694c 100644
--- a/device_tree.c
+++ b/device_tree.c
@@ -153,6 +153,7 @@ int qemu_devtree_add_subnode(void *fdt, const char *name)
     int retval;
 
     if (!basename) {
+        g_free(dupname);
         return -1;
     }
 
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 02/10] vmdk: remove unneeded variable assignment
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 01/10] device_tree: Fix potential memory leak Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 03/10] vmdk: vmdk_read_cid returns garbage if p_name is NULL Stefan Hajnoczi
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi, Pavel Borzenkov

From: Pavel Borzenkov <pavel.borzenkov@gmail.com>

Spotted by Clang Analyzer

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 block/vmdk.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/block/vmdk.c b/block/vmdk.c
index 5d16ec4..3969131 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -1387,7 +1387,6 @@ static int vmdk_create(const char *filename, QEMUOptionParameter *options)
             bdrv_delete(bs);
             return -EINVAL;
         }
-        filesize = bdrv_getlength(bs);
         parent_cid = vmdk_read_cid(bs, 0);
         bdrv_delete(bs);
         relative_path(parent_filename, sizeof(parent_filename),
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 03/10] vmdk: vmdk_read_cid returns garbage if p_name is NULL
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 01/10] device_tree: Fix potential memory leak Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 02/10] vmdk: remove unneeded variable assignment Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 04/10] qed: don't pass NULL to memcpy Stefan Hajnoczi
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi, Pavel Borzenkov

From: Pavel Borzenkov <pavel.borzenkov@gmail.com>

Spotted by Clang Analyzer

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 block/vmdk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/block/vmdk.c b/block/vmdk.c
index 3969131..a75dcc2 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -207,7 +207,7 @@ static void vmdk_free_last_extent(BlockDriverState *bs)
 static uint32_t vmdk_read_cid(BlockDriverState *bs, int parent)
 {
     char desc[DESC_SIZE];
-    uint32_t cid;
+    uint32_t cid = 0xffffffff;
     const char *p_name, *cid_str;
     size_t cid_str_size;
     BDRVVmdkState *s = bs->opaque;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 04/10] qed: don't pass NULL to memcpy
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (2 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 03/10] vmdk: vmdk_read_cid returns garbage if p_name is NULL Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 05/10] qed: remove unneeded variable assignment Stefan Hajnoczi
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi, Pavel Borzenkov

From: Pavel Borzenkov <pavel.borzenkov@gmail.com>

Spotted by Clang Analyzer

[Note this memcpy call has always been safe because the length will be 0
when the pointer is NULL]

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 block/qed.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/block/qed.c b/block/qed.c
index e87dc4d..7fab155 100644
--- a/block/qed.c
+++ b/block/qed.c
@@ -1425,8 +1425,10 @@ static int bdrv_qed_change_backing_file(BlockDriverState *bs,
     memcpy(buffer, &le_header, sizeof(le_header));
     buffer_len = sizeof(le_header);
 
-    memcpy(buffer + buffer_len, backing_file, backing_file_len);
-    buffer_len += backing_file_len;
+    if (backing_file) {
+        memcpy(buffer + buffer_len, backing_file, backing_file_len);
+        buffer_len += backing_file_len;
+    }
 
     /* Write new header */
     ret = bdrv_pwrite_sync(bs->file, 0, buffer, buffer_len);
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 05/10] qed: remove unneeded variable assignment
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (3 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 04/10] qed: don't pass NULL to memcpy Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 06/10] exec.c: Remove useless comment Stefan Hajnoczi
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi, Pavel Borzenkov

From: Pavel Borzenkov <pavel.borzenkov@gmail.com>

'ret' is unconditionally overwitten by qed_read_l1_table_sync()

Spotted by Clang Analyzer

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 block/qed.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/block/qed.c b/block/qed.c
index 7fab155..e6720db 100644
--- a/block/qed.c
+++ b/block/qed.c
@@ -388,7 +388,6 @@ static int bdrv_qed_open(BlockDriverState *bs, int flags)
     if (ret < 0) {
         return ret;
     }
-    ret = 0; /* ret should always be 0 or -errno */
     qed_header_le_to_cpu(&le_header, &s->header);
 
     if (s->header.magic != QED_MAGIC) {
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 06/10] exec.c: Remove useless comment
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (4 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 05/10] qed: remove unneeded variable assignment Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 07/10] tools: reorganize Makefile variables Stefan Hajnoczi
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi, 陳韋任

From: 陳韋任 <chenwj@iis.sinica.edu.tw>

  As phys_ram_size had been removed since QEMU 0.12. Remove the useless
comment.

Signed-off-by: Chen Wen-Ren <chenwj@iis.sinica.edu.tw>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 exec.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/exec.c b/exec.c
index 9dc4edb..2f3c6a0 100644
--- a/exec.c
+++ b/exec.c
@@ -469,7 +469,6 @@ static void code_gen_alloc(unsigned long tb_size)
     code_gen_buffer_size = tb_size;
     if (code_gen_buffer_size == 0) {
 #if defined(CONFIG_USER_ONLY)
-        /* in user mode, phys_ram_size is not meaningful */
         code_gen_buffer_size = DEFAULT_CODE_GEN_BUFFER_SIZE;
 #else
         /* XXX: needs adjustments */
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 07/10] tools: reorganize Makefile variables
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (5 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 06/10] exec.c: Remove useless comment Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 08/10] Fix typo: buf -> bus Stefan Hajnoczi
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Anthony Liguori, Stefan Hajnoczi

From: Paolo Bonzini <pbonzini@redhat.com>

- Add all dependencies of the block layer to block-obj-y, and all
  dependencies of QObject to qobject-obj-y

- Remove the block layer from tools-obj-y, add it to qemu-img, qemu-nbd,
  qemu-io

- Add qobject-obj-y and tools-obj-y wherever useful, remove duplicates

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 Makefile      |   32 +++++++++++++++-----------------
 Makefile.objs |    8 ++++----
 2 files changed, 19 insertions(+), 21 deletions(-)

diff --git a/Makefile b/Makefile
index f63fc02..ba8d738 100644
--- a/Makefile
+++ b/Makefile
@@ -146,27 +146,25 @@ endif
 qemu-img.o: qemu-img-cmds.h
 qemu-img.o qemu-tool.o qemu-nbd.o qemu-io.o cmd.o qemu-ga.o: $(GENERATED_HEADERS)
 
-tools-obj-y = qemu-tool.o qemu-error.o $(oslib-obj-y) $(trace-obj-y) \
-        $(block-obj-y) $(qobject-obj-y) $(version-obj-y) qemu-timer-common.o
+tools-obj-y = qemu-tool.o $(oslib-obj-y) $(trace-obj-y) \
+	qemu-timer-common.o cutils.o
 
-qemu-img$(EXESUF): qemu-img.o $(tools-obj-y)
-qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y)
-qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y)
+qemu-img$(EXESUF): qemu-img.o $(tools-obj-y) $(block-obj-y)
+qemu-nbd$(EXESUF): qemu-nbd.o $(tools-obj-y) $(block-obj-y)
+qemu-io$(EXESUF): qemu-io.o cmd.o $(tools-obj-y) $(block-obj-y)
 
 qemu-img-cmds.h: $(SRC_PATH)/qemu-img-cmds.hx
 	$(call quiet-command,sh $(SRC_PATH)/scripts/hxtool -h < $< > $@,"  GEN   $@")
 
 check-qint.o check-qstring.o check-qdict.o check-qlist.o check-qfloat.o check-qjson.o test-coroutine.o: $(GENERATED_HEADERS)
 
-CHECK_PROG_DEPS = $(oslib-obj-y) $(trace-obj-y) qemu-tool.o
-
-check-qint: check-qint.o qint.o $(CHECK_PROG_DEPS)
-check-qstring: check-qstring.o qstring.o $(CHECK_PROG_DEPS)
-check-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qlist.o $(CHECK_PROG_DEPS)
-check-qlist: check-qlist.o qlist.o qint.o $(CHECK_PROG_DEPS)
-check-qfloat: check-qfloat.o qfloat.o $(CHECK_PROG_DEPS)
-check-qjson: check-qjson.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o qjson.o json-streamer.o json-lexer.o json-parser.o error.o qerror.o qemu-error.o $(CHECK_PROG_DEPS)
-test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(CHECK_PROG_DEPS)
+check-qint: check-qint.o qint.o $(tools-obj-y)
+check-qstring: check-qstring.o qstring.o $(tools-obj-y)
+check-qdict: check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qlist.o $(tools-obj-y)
+check-qlist: check-qlist.o qlist.o qint.o $(tools-obj-y)
+check-qfloat: check-qfloat.o qfloat.o $(tools-obj-y)
+check-qjson: check-qjson.o $(qobject-obj-y) $(tools-obj-y)
+test-coroutine: test-coroutine.o qemu-timer-common.o async.o $(coroutine-obj-y) $(tools-obj-y)
 
 $(qapi-obj-y): $(GENERATED_HEADERS)
 qapi-dir := qapi-generated
@@ -204,16 +202,16 @@ qmp-marshal.c: $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py
 	$(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-commands.py -m -o "." < $<, "  GEN   $@")
 
 test-visitor.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h) $(qapi-obj-y)
-test-visitor: test-visitor.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o $(qapi-obj-y) error.o osdep.o $(oslib-obj-y) qjson.o json-streamer.o json-lexer.o json-parser.o qerror.o qemu-error.o qemu-tool.o $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o
+test-visitor: test-visitor.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o
 
 test-qmp-commands.o: $(addprefix $(qapi-dir)/, test-qapi-types.c test-qapi-types.h test-qapi-visit.c test-qapi-visit.h test-qmp-marshal.c test-qmp-commands.h) $(qapi-obj-y)
-test-qmp-commands: test-qmp-commands.o qfloat.o qint.o qdict.o qstring.o qlist.o qbool.o $(qapi-obj-y) error.o osdep.o $(oslib-obj-y) qjson.o json-streamer.o json-lexer.o json-parser.o qerror.o qemu-error.o qemu-tool.o $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o $(qapi-dir)/test-qmp-marshal.o module.o
+test-qmp-commands: test-qmp-commands.o $(qobject-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qapi-dir)/test-qapi-visit.o $(qapi-dir)/test-qapi-types.o $(qapi-dir)/test-qmp-marshal.o module.o
 
 QGALIB_GEN=$(addprefix $(qapi-dir)/, qga-qapi-types.c qga-qapi-types.h qga-qapi-visit.c qga-qmp-marshal.c)
 $(QGALIB_GEN): $(GENERATED_HEADERS)
 $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
 
-qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(trace-obj-y) $(qobject-obj-y) $(version-obj-y) $(addprefix $(qapi-dir)/, qga-qapi-visit.o qga-qapi-types.o qga-qmp-marshal.o)
+qemu-ga$(EXESUF): qemu-ga.o $(qga-obj-y) $(qapi-obj-y) $(tools-obj-y) $(qobject-obj-y) $(version-obj-y) $(addprefix $(qapi-dir)/, qga-qapi-visit.o qga-qapi-types.o qga-qmp-marshal.o)
 
 QEMULIBS=libhw32 libhw64 libuser libdis libdis-user
 
diff --git a/Makefile.objs b/Makefile.objs
index 01587c8..a19e7c5 100644
--- a/Makefile.objs
+++ b/Makefile.objs
@@ -2,7 +2,7 @@
 # QObject
 qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
 qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
-qobject-obj-y += qerror.o error.o
+qobject-obj-y += qerror.o error.o qemu-error.o
 
 #######################################################################
 # oslib-obj-y is code depending on the OS (win32 vs posix)
@@ -25,7 +25,7 @@ coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
 
 block-obj-y = cutils.o cache-utils.o qemu-option.o module.o async.o
 block-obj-y += nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o
-block-obj-y += $(coroutine-obj-y)
+block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
 block-obj-$(CONFIG_POSIX) += posix-aio-compat.o
 block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
 
@@ -76,7 +76,7 @@ common-obj-y = $(block-obj-y) blockdev.o
 common-obj-y += $(net-obj-y)
 common-obj-y += $(qobject-obj-y)
 common-obj-$(CONFIG_LINUX) += $(fsdev-obj-$(CONFIG_LINUX))
-common-obj-y += readline.o console.o cursor.o qemu-error.o
+common-obj-y += readline.o console.o cursor.o
 common-obj-y += $(oslib-obj-y)
 common-obj-$(CONFIG_WIN32) += os-win32.o
 common-obj-$(CONFIG_POSIX) += os-posix.o
@@ -415,7 +415,7 @@ common-obj-y += qmp.o hmp.o
 
 qga-nested-y = guest-agent-commands.o guest-agent-command-state.o
 qga-obj-y = $(addprefix qga/, $(qga-nested-y))
-qga-obj-y += qemu-ga.o qemu-tool.o qemu-error.o qemu-sockets.o module.o qemu-option.o cutils.o osdep.o
+qga-obj-y += qemu-ga.o qemu-sockets.o module.o qemu-option.o
 qga-obj-$(CONFIG_WIN32) += oslib-win32.o
 qga-obj-$(CONFIG_POSIX) += oslib-posix.o
 
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 08/10] Fix typo: buf -> bus
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (6 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 07/10] tools: reorganize Makefile variables Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 09/10] Documentation: fix typo Stefan Hajnoczi
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Hervé Poussineau, Stefan Hajnoczi

From: Hervé Poussineau <hpoussin@reactos.org>

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 hw/audiodev.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/audiodev.h b/hw/audiodev.h
index 8e930b2..d60c349 100644
--- a/hw/audiodev.h
+++ b/hw/audiodev.h
@@ -11,7 +11,7 @@ int Adlib_init(qemu_irq *pic);
 int GUS_init(qemu_irq *pic);
 
 /* ac97.c */
-int ac97_init(PCIBus *buf);
+int ac97_init(PCIBus *bus);
 
 /* cs4231a.c */
 int cs4231a_init(qemu_irq *pic);
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 09/10] Documentation: fix typo
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (7 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 08/10] Fix typo: buf -> bus Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 10/10] ahci: fix DPRINTF format strings Stefan Hajnoczi
  2011-10-31 16:52 ` [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Anthony Liguori
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Liguori, Stefan Hajnoczi

From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 qemu-doc.texi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu-doc.texi b/qemu-doc.texi
index ad19b73..149e9bd 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -227,7 +227,7 @@ QEMU uses YM3812 emulation by Tatsuyuki Satoh.
 QEMU uses GUS emulation (GUSEMU32 @url{http://www.deinmeister.de/gusemu/})
 by Tibor "TS" Schütz.
 
-Not that, by default, GUS shares IRQ(7) with parallel ports and so
+Note that, by default, GUS shares IRQ(7) with parallel ports and so
 qemu must be told to not have parallel ports to have working GUS
 
 @example
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Qemu-devel] [PATCH 10/10] ahci: fix DPRINTF format strings
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (8 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 09/10] Documentation: fix typo Stefan Hajnoczi
@ 2011-10-26 14:22 ` Stefan Hajnoczi
  2011-10-31 16:52 ` [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Anthony Liguori
  10 siblings, 0 replies; 12+ messages in thread
From: Stefan Hajnoczi @ 2011-10-26 14:22 UTC (permalink / raw)
  To: qemu-devel; +Cc: Max Filippov, Anthony Liguori, Stefan Hajnoczi

From: Max Filippov <jcmvbkbc@gmail.com>

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 hw/ide/ahci.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index 1c7e3a0..0af201d 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -327,7 +327,7 @@ static void ahci_mem_write(void *opaque, target_phys_addr_t addr,
     }
 
     if (addr < AHCI_GENERIC_HOST_CONTROL_REGS_MAX_ADDR) {
-        DPRINTF(-1, "(addr 0x%08X), val 0x%08X\n", (unsigned) addr, val);
+        DPRINTF(-1, "(addr 0x%08X), val 0x%08"PRIX64"\n", (unsigned) addr, val);
 
         switch (addr) {
             case HOST_CAP: /* R/WO, RO */
@@ -777,7 +777,8 @@ static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis,
     ncq_tfs->sector_count = ((uint16_t)ncq_fis->sector_count_high << 8) |
                                 ncq_fis->sector_count_low;
 
-    DPRINTF(port, "NCQ transfer LBA from %ld to %ld, drive max %ld\n",
+    DPRINTF(port, "NCQ transfer LBA from %"PRId64" to %"PRId64", "
+            "drive max %"PRId64"\n",
             ncq_tfs->lba, ncq_tfs->lba + ncq_tfs->sector_count - 2,
             s->dev[port].port.ifs[0].nb_sectors - 1);
 
@@ -786,10 +787,12 @@ static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis,
 
     switch(ncq_fis->command) {
         case READ_FPDMA_QUEUED:
-            DPRINTF(port, "NCQ reading %d sectors from LBA %ld, tag %d\n",
+            DPRINTF(port, "NCQ reading %d sectors from LBA %"PRId64", "
+                    "tag %d\n",
                     ncq_tfs->sector_count-1, ncq_tfs->lba, ncq_tfs->tag);
 
-            DPRINTF(port, "tag %d aio read %ld\n", ncq_tfs->tag, ncq_tfs->lba);
+            DPRINTF(port, "tag %d aio read %"PRId64"\n",
+                    ncq_tfs->tag, ncq_tfs->lba);
 
             bdrv_acct_start(ncq_tfs->drive->port.ifs[0].bs, &ncq_tfs->acct,
                             (ncq_tfs->sector_count-1) * BDRV_SECTOR_SIZE,
@@ -799,10 +802,11 @@ static void process_ncq_command(AHCIState *s, int port, uint8_t *cmd_fis,
                                            ncq_cb, ncq_tfs);
             break;
         case WRITE_FPDMA_QUEUED:
-            DPRINTF(port, "NCQ writing %d sectors to LBA %ld, tag %d\n",
+            DPRINTF(port, "NCQ writing %d sectors to LBA %"PRId64", tag %d\n",
                     ncq_tfs->sector_count-1, ncq_tfs->lba, ncq_tfs->tag);
 
-            DPRINTF(port, "tag %d aio write %ld\n", ncq_tfs->tag, ncq_tfs->lba);
+            DPRINTF(port, "tag %d aio write %"PRId64"\n",
+                    ncq_tfs->tag, ncq_tfs->lba);
 
             bdrv_acct_start(ncq_tfs->drive->port.ifs[0].bs, &ncq_tfs->acct,
                             (ncq_tfs->sector_count-1) * BDRV_SECTOR_SIZE,
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011
  2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
                   ` (9 preceding siblings ...)
  2011-10-26 14:22 ` [Qemu-devel] [PATCH 10/10] ahci: fix DPRINTF format strings Stefan Hajnoczi
@ 2011-10-31 16:52 ` Anthony Liguori
  10 siblings, 0 replies; 12+ messages in thread
From: Anthony Liguori @ 2011-10-31 16:52 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel

On 10/26/2011 09:22 AM, Stefan Hajnoczi wrote:
> The following changes since commit d300854b1ccd036e0d7c58d789f4ab8d372263e6:
>
>    target-sparc: Fix use of g_new0 / g_free (2011-10-25 19:30:33 +0000)
>
> are available in the git repository at:
>    ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches

Pulled.  Thanks.

Regards,

Anthony Liguori

>
> Bernhard Reutner-Fischer (1):
>        Documentation: fix typo
>
> Hervé Poussineau (1):
>        Fix typo: buf ->  bus
>
> Max Filippov (1):
>        ahci: fix DPRINTF format strings
>
> Paolo Bonzini (1):
>        tools: reorganize Makefile variables
>
> Pavel Borzenkov (4):
>        vmdk: remove unneeded variable assignment
>        vmdk: vmdk_read_cid returns garbage if p_name is NULL
>        qed: don't pass NULL to memcpy
>        qed: remove unneeded variable assignment
>
> Stefan Weil (1):
>        device_tree: Fix potential memory leak
>
> 陳韋任 (1):
>        exec.c: Remove useless comment
>
>   Makefile      |   32 +++++++++++++++-----------------
>   Makefile.objs |    8 ++++----
>   block/qed.c   |    7 ++++---
>   block/vmdk.c  |    3 +--
>   device_tree.c |    1 +
>   exec.c        |    1 -
>   hw/audiodev.h |    2 +-
>   hw/ide/ahci.c |   16 ++++++++++------
>   qemu-doc.texi |    2 +-
>   9 files changed, 37 insertions(+), 35 deletions(-)
>

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-10-31 16:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26 14:22 [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 01/10] device_tree: Fix potential memory leak Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 02/10] vmdk: remove unneeded variable assignment Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 03/10] vmdk: vmdk_read_cid returns garbage if p_name is NULL Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 04/10] qed: don't pass NULL to memcpy Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 05/10] qed: remove unneeded variable assignment Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 06/10] exec.c: Remove useless comment Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 07/10] tools: reorganize Makefile variables Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 08/10] Fix typo: buf -> bus Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 09/10] Documentation: fix typo Stefan Hajnoczi
2011-10-26 14:22 ` [Qemu-devel] [PATCH 10/10] ahci: fix DPRINTF format strings Stefan Hajnoczi
2011-10-31 16:52 ` [Qemu-devel] [PULL 00/10] Trivial patches for October 15 to 26 2011 Anthony Liguori

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.