All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012
@ 2012-01-13 10:51 Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 01/12] configure: Modify detection of supported warning options Stefan Hajnoczi
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi

The following changes since commit bee5a5fb11de34aa422cfc830adbd51cfc8f5b55:

  cris: Update paths to match the move of tests/cris (2012-01-13 11:09:56 +0100)

are available in the git repository at:
  git://github.com/stefanha/qemu.git trivial-patches

Aurelien Jarno (1):
      tcg-arm: fix a typo in comments

Stefan Berger (1):
      hmp: Fix freeing of PciInfoList

Stefan Hajnoczi (4):
      vvfat: avoid leaking file descriptor in commit_one_file()
      vnc: fix no-lock-key-sync strncmp() length
      omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS
      bt-host: add missing break statement

Stefan Weil (6):
      configure: Modify detection of supported warning options
      Spelling fixes in comments and documentation
      Add 'fall through' comments to case statements without break
      virtfs-proxy-helper: Fix compilation on newer systems
      virtfs-proxy-helper: Clean include files
      virtfs-proxy-helper: Add missing printf format attribute

 block/vvfat.c                 |    3 +++
 bt-host.c                     |    1 +
 configure                     |    2 +-
 docs/writing-qmp-commands.txt |    2 +-
 exec.c                        |    2 +-
 fsdev/virtfs-proxy-helper.c   |   19 ++++---------------
 hmp.c                         |    8 ++++----
 hw/omap_dss.c                 |    4 ++--
 hw/pcnet.c                    |    1 +
 json-lexer.c                  |    1 +
 memory.h                      |    4 ++--
 qemu-ga.c                     |    2 +-
 qemu-option.c                 |    4 ++++
 tcg/arm/tcg-target.c          |    2 +-
 ui/vnc.c                      |    2 +-
 15 files changed, 28 insertions(+), 29 deletions(-)

-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 01/12] configure: Modify detection of supported warning options
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 02/12] tcg-arm: fix a typo in comments Stefan Hajnoczi
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi

From: Stefan Weil <sw@weilnetz.de>

Reversing the order of the warning options and -Werror is important
when clang is used instead of gcc. It changes nothing for gcc.

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

diff --git a/configure b/configure
index eb9a01d..467e87b 100755
--- a/configure
+++ b/configure
@@ -1105,7 +1105,7 @@ cat > $TMPC << EOF
 int main(void) { return 0; }
 EOF
 for flag in $gcc_flags; do
-    if compile_prog "$flag -Werror" "" ; then
+    if compile_prog "-Werror $flag" "" ; then
 	QEMU_CFLAGS="$QEMU_CFLAGS $flag"
     fi
 done
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 02/12] tcg-arm: fix a typo in comments
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 01/12] configure: Modify detection of supported warning options Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 03/12] Spelling fixes in comments and documentation Stefan Hajnoczi
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Aurelien Jarno, Stefan Hajnoczi

From: Aurelien Jarno <aurelien@aurel32.net>

ARM still doesn't support 16GB buffers in 32-bit modes, replace the
16GB by 16MB in the comment.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 exec.c               |    2 +-
 tcg/arm/tcg-target.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec.c b/exec.c
index b1d6602..7f9f730 100644
--- a/exec.c
+++ b/exec.c
@@ -511,7 +511,7 @@ static void code_gen_alloc(unsigned long tb_size)
         if (code_gen_buffer_size > (512 * 1024 * 1024))
             code_gen_buffer_size = (512 * 1024 * 1024);
 #elif defined(__arm__)
-        /* Keep the buffer no bigger than 16GB to branch between blocks */
+        /* Keep the buffer no bigger than 16MB to branch between blocks */
         if (code_gen_buffer_size > 16 * 1024 * 1024)
             code_gen_buffer_size = 16 * 1024 * 1024;
 #elif defined(__s390x__)
diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c
index 1d32798..5b233f5 100644
--- a/tcg/arm/tcg-target.c
+++ b/tcg/arm/tcg-target.c
@@ -843,7 +843,7 @@ static inline void tcg_out_st8(TCGContext *s, int cond,
 }
 
 /* The _goto case is normally between TBs within the same code buffer,
- * and with the code buffer limited to 16GB we shouldn't need the long
+ * and with the code buffer limited to 16MB we shouldn't need the long
  * case.
  *
  * .... except to the prologue that is in its own buffer.
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 03/12] Spelling fixes in comments and documentation
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 01/12] configure: Modify detection of supported warning options Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 02/12] tcg-arm: fix a typo in comments Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 04/12] vvfat: avoid leaking file descriptor in commit_one_file() Stefan Hajnoczi
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi

From: Stefan Weil <sw@weilnetz.de>

Codespell detected these new spelling issues.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 docs/writing-qmp-commands.txt |    2 +-
 memory.h                      |    4 ++--
 qemu-ga.c                     |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/writing-qmp-commands.txt b/docs/writing-qmp-commands.txt
index 0472fc3..0ad51aa 100644
--- a/docs/writing-qmp-commands.txt
+++ b/docs/writing-qmp-commands.txt
@@ -435,7 +435,7 @@ There are a number of things to be noticed:
    for all QMP functions)
 3. The "clock" variable (which will point to our QAPI type instance) is
    allocated by the regular g_malloc0() function. Note that we chose to
-   initialize the memory to zero. This is recomended for all QAPI types, as
+   initialize the memory to zero. This is recommended for all QAPI types, as
    it helps avoiding bad surprises (specially with booleans)
 4. Remember that "next_deadline" is optional? All optional members have a
    'has_TYPE_NAME' member that should be properly set by the implementation,
diff --git a/memory.h b/memory.h
index 70f57fb..d48b08b 100644
--- a/memory.h
+++ b/memory.h
@@ -561,7 +561,7 @@ void memory_region_add_subregion_overlap(MemoryRegion *mr,
  * memory_region_get_ram_addr: Get the ram address associated with a memory
  *                             region
  *
- * DO NOT USE THIS FUCNTION.  This is a temporary workaround while the Xen
+ * DO NOT USE THIS FUNCTION.  This is a temporary workaround while the Xen
  * code is being reworked.
  */
 ram_addr_t memory_region_get_ram_addr(MemoryRegion *mr);
@@ -650,7 +650,7 @@ void memory_global_sync_dirty_bitmap(MemoryRegion *address_space);
  * memory_region_transaction_begin: Start a transaction.
  *
  * During a transaction, changes will be accumulated and made visible
- * only when the transaction ends (is commited).
+ * only when the transaction ends (is committed).
  */
 void memory_region_transaction_begin(void);
 
diff --git a/qemu-ga.c b/qemu-ga.c
index 200bb15..29e4f64 100644
--- a/qemu-ga.c
+++ b/qemu-ga.c
@@ -92,7 +92,7 @@ static void usage(const char *cmd)
 "  -v, --verbose     log extra debugging information\n"
 "  -V, --version     print version information and exit\n"
 "  -d, --daemonize   become a daemon\n"
-"  -b, --blacklist   comma-seperated list of RPCs to disable (no spaces, \"?\""
+"  -b, --blacklist   comma-separated list of RPCs to disable (no spaces, \"?\""
 "                    to list available RPCs)\n"
 "  -h, --help        display this help and exit\n"
 "\n"
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 04/12] vvfat: avoid leaking file descriptor in commit_one_file()
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (2 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 03/12] Spelling fixes in comments and documentation Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 05/12] vnc: fix no-lock-key-sync strncmp() length Stefan Hajnoczi
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi

Reported-by: Dr David Alan Gilbert <davidagilbert@uk.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 block/vvfat.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/block/vvfat.c b/block/vvfat.c
index eeffc4a..9ef21dd 100644
--- a/block/vvfat.c
+++ b/block/vvfat.c
@@ -2218,6 +2218,7 @@ static int commit_one_file(BDRVVVFATState* s,
     }
     if (offset > 0) {
         if (lseek(fd, offset, SEEK_SET) != offset) {
+            close(fd);
             g_free(cluster);
             return -3;
         }
@@ -2238,11 +2239,13 @@ static int commit_one_file(BDRVVVFATState* s,
 	    (uint8_t*)cluster, (rest_size + 0x1ff) / 0x200);
 
         if (ret < 0) {
+            close(fd);
             g_free(cluster);
             return ret;
         }
 
         if (write(fd, cluster, rest_size) < 0) {
+            close(fd);
             g_free(cluster);
             return -2;
         }
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 05/12] vnc: fix no-lock-key-sync strncmp() length
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (3 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 04/12] vvfat: avoid leaking file descriptor in commit_one_file() Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 06/12] omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS Stefan Hajnoczi
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi

The no-lock-key-sync option is being parsed incorrectly because of an
outdated strcmp() length value.  Use the correct length so that invalid
option names do not match.

Reported-by: Dr David Alan Gilbert <davidagilbert@uk.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 ui/vnc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ui/vnc.c b/ui/vnc.c
index 6767ada..1869a7a 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -2763,7 +2763,7 @@ int vnc_display_open(DisplayState *ds, const char *display)
             password = 1; /* Require password auth */
         } else if (strncmp(options, "reverse", 7) == 0) {
             reverse = 1;
-        } else if (strncmp(options, "no-lock-key-sync", 9) == 0) {
+        } else if (strncmp(options, "no-lock-key-sync", 16) == 0) {
             lock_key_sync = 0;
 #ifdef CONFIG_VNC_SASL
         } else if (strncmp(options, "sasl", 4) == 0) {
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 06/12] omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (4 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 05/12] vnc: fix no-lock-key-sync strncmp() length Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 07/12] Add 'fall through' comments to case statements without break Stefan Hajnoczi
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi

The RFBI_READ/RFBI_STATUS code incorrectly uses chip[0] when it should
be using chip[1].  Andrzej Zaborowski <balrog@zabor.org> confirmed this
bug since I don't know this code well.

Reported-by: Dr David Alan Gilbert <davidagilbert@uk.ibm.com>
Reviewed-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 hw/omap_dss.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/omap_dss.c b/hw/omap_dss.c
index ede640b..86ed6ea 100644
--- a/hw/omap_dss.c
+++ b/hw/omap_dss.c
@@ -793,7 +793,7 @@ static void omap_rfbi_write(void *opaque, target_phys_addr_t addr,
         if ((s->rfbi.control & (1 << 2)) && s->rfbi.chip[0])
             s->rfbi.rxbuf = s->rfbi.chip[0]->read(s->rfbi.chip[0]->opaque, 1);
         else if ((s->rfbi.control & (1 << 3)) && s->rfbi.chip[1])
-            s->rfbi.rxbuf = s->rfbi.chip[0]->read(s->rfbi.chip[0]->opaque, 1);
+            s->rfbi.rxbuf = s->rfbi.chip[1]->read(s->rfbi.chip[1]->opaque, 1);
         if (!-- s->rfbi.pixels)
             omap_rfbi_transfer_stop(s);
         break;
@@ -802,7 +802,7 @@ static void omap_rfbi_write(void *opaque, target_phys_addr_t addr,
         if ((s->rfbi.control & (1 << 2)) && s->rfbi.chip[0])
             s->rfbi.rxbuf = s->rfbi.chip[0]->read(s->rfbi.chip[0]->opaque, 0);
         else if ((s->rfbi.control & (1 << 3)) && s->rfbi.chip[1])
-            s->rfbi.rxbuf = s->rfbi.chip[0]->read(s->rfbi.chip[0]->opaque, 0);
+            s->rfbi.rxbuf = s->rfbi.chip[1]->read(s->rfbi.chip[1]->opaque, 0);
         if (!-- s->rfbi.pixels)
             omap_rfbi_transfer_stop(s);
         break;
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 07/12] Add 'fall through' comments to case statements without break
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (5 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 06/12] omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 08/12] hmp: Fix freeing of PciInfoList Stefan Hajnoczi
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi

From: Stefan Weil <sw@weilnetz.de>

These comments are used by static code analysis tools and in code reviews
to avoid false warnings because of missing break statements.

The case statements handled here were reported by coverity.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 hw/pcnet.c    |    1 +
 json-lexer.c  |    1 +
 qemu-option.c |    4 ++++
 3 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/hw/pcnet.c b/hw/pcnet.c
index cba253b..306dc6e 100644
--- a/hw/pcnet.c
+++ b/hw/pcnet.c
@@ -1505,6 +1505,7 @@ static void pcnet_bcr_writew(PCNetState *s, uint32_t rap, uint32_t val)
 #ifdef PCNET_DEBUG
        printf("BCR_SWS=0x%04x\n", val);
 #endif
+        /* fall through */
     case BCR_LNKST:
     case BCR_LED1:
     case BCR_LED2:
diff --git a/json-lexer.c b/json-lexer.c
index c21338f..3cd3285 100644
--- a/json-lexer.c
+++ b/json-lexer.c
@@ -301,6 +301,7 @@ static int json_lexer_feed_char(JSONLexer *lexer, char ch, bool flush)
         case JSON_KEYWORD:
         case JSON_STRING:
             lexer->emit(lexer, lexer->token, new_state, lexer->x, lexer->y);
+            /* fall through */
         case JSON_SKIP:
             QDECREF(lexer->token);
             lexer->token = qstring_new();
diff --git a/qemu-option.c b/qemu-option.c
index 6b23c31..a303f87 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -214,13 +214,17 @@ static int parse_option_size(const char *name, const char *value, uint64_t *ret)
         switch (*postfix) {
         case 'T':
             sizef *= 1024;
+            /* fall through */
         case 'G':
             sizef *= 1024;
+            /* fall through */
         case 'M':
             sizef *= 1024;
+            /* fall through */
         case 'K':
         case 'k':
             sizef *= 1024;
+            /* fall through */
         case 'b':
         case '\0':
             *ret = (uint64_t) sizef;
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 08/12] hmp: Fix freeing of PciInfoList
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (6 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 07/12] Add 'fall through' comments to case statements without break Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 09/12] virtfs-proxy-helper: Fix compilation on newer systems Stefan Hajnoczi
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi, Stefan Berger

From: Stefan Berger <stefanb@linux.vnet.ibm.com>

Remember the original PciInfoList in info_list and use
the info variable to traverse the list.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 hmp.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/hmp.c b/hmp.c
index e7659d5..fd4f755 100644
--- a/hmp.c
+++ b/hmp.c
@@ -486,17 +486,17 @@ static void hmp_info_pci_device(Monitor *mon, const PciDeviceInfo *dev)
 
 void hmp_info_pci(Monitor *mon)
 {
-    PciInfoList *info;
+    PciInfoList *info_list, *info;
     Error *err = NULL;
 
-    info = qmp_query_pci(&err);
+    info_list = qmp_query_pci(&err);
     if (err) {
         monitor_printf(mon, "PCI devices not supported\n");
         error_free(err);
         return;
     }
 
-    for (; info; info = info->next) {
+    for (info = info_list; info; info = info->next) {
         PciDeviceInfoList *dev;
 
         for (dev = info->value->devices; dev; dev = dev->next) {
@@ -504,7 +504,7 @@ void hmp_info_pci(Monitor *mon)
         }
     }
 
-    qapi_free_PciInfoList(info);
+    qapi_free_PciInfoList(info_list);
 }
 
 void hmp_quit(Monitor *mon, const QDict *qdict)
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 09/12] virtfs-proxy-helper: Fix compilation on newer systems
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (7 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 08/12] hmp: Fix freeing of PciInfoList Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 10/12] virtfs-proxy-helper: Clean include files Stefan Hajnoczi
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi

From: Stefan Weil <sw@weilnetz.de>

Include file attr/xattr.h is not available on "newer" systems
(for example Fedora 12 or Debian Squeeze).

See comments in qemu-xattr.h for more information.
This file handles the system dependencies automatically.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 fsdev/virtfs-proxy-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 7f8def5..ce7eb79 100644
--- a/fsdev/virtfs-proxy-helper.c
+++ b/fsdev/virtfs-proxy-helper.c
@@ -27,13 +27,13 @@
 #include <stdbool.h>
 #include <sys/vfs.h>
 #include <sys/stat.h>
-#include <attr/xattr.h>
 #include <sys/ioctl.h>
 #include <linux/fs.h>
 #ifdef CONFIG_LINUX_MAGIC_H
 #include <linux/magic.h>
 #endif
 #include "qemu-common.h"
+#include "qemu-xattr.h"
 #include "virtio-9p-marshal.h"
 #include "hw/9pfs/virtio-9p-proxy.h"
 #include "fsdev/virtio-9p-marshal.h"
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 10/12] virtfs-proxy-helper: Clean include files
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (8 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 09/12] virtfs-proxy-helper: Fix compilation on newer systems Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 11/12] virtfs-proxy-helper: Add missing printf format attribute Stefan Hajnoczi
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi

From: Stefan Weil <sw@weilnetz.de>

The common standard include files are already included via qemu-common.h,
and for the socket related include files there is qemu_socket.h, so the
code can be reduced by some lines.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 fsdev/virtfs-proxy-helper.c |   15 ++-------------
 1 files changed, 2 insertions(+), 13 deletions(-)

diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index ce7eb79..21e9b16 100644
--- a/fsdev/virtfs-proxy-helper.c
+++ b/fsdev/virtfs-proxy-helper.c
@@ -8,31 +8,20 @@
  * This work is licensed under the terms of the GNU GPL, version 2. See
  * the COPYING file in the top-level directory.
  */
-#include <stdio.h>
-#include <sys/socket.h>
-#include <string.h>
-#include <sys/un.h>
-#include <limits.h>
-#include <signal.h>
-#include <errno.h>
-#include <stdlib.h>
+
 #include <sys/resource.h>
-#include <sys/stat.h>
 #include <getopt.h>
-#include <unistd.h>
 #include <syslog.h>
 #include <sys/capability.h>
 #include <sys/fsuid.h>
-#include <stdarg.h>
-#include <stdbool.h>
 #include <sys/vfs.h>
-#include <sys/stat.h>
 #include <sys/ioctl.h>
 #include <linux/fs.h>
 #ifdef CONFIG_LINUX_MAGIC_H
 #include <linux/magic.h>
 #endif
 #include "qemu-common.h"
+#include "qemu_socket.h"
 #include "qemu-xattr.h"
 #include "virtio-9p-marshal.h"
 #include "hw/9pfs/virtio-9p-proxy.h"
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 11/12] virtfs-proxy-helper: Add missing printf format attribute
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (9 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 10/12] virtfs-proxy-helper: Clean include files Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 12/12] bt-host: add missing break statement Stefan Hajnoczi
  2012-01-13 16:53 ` [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Anthony Liguori
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Stefan Weil, qemu-devel, Stefan Hajnoczi

From: Stefan Weil <sw@weilnetz.de>

Every function with printf like arguments must have it
(see file HACKING), so add it.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
---
 fsdev/virtfs-proxy-helper.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c
index 21e9b16..4a507d8 100644
--- a/fsdev/virtfs-proxy-helper.c
+++ b/fsdev/virtfs-proxy-helper.c
@@ -54,7 +54,7 @@ static struct option helper_opts[] = {
 static bool is_daemon;
 static bool get_version; /* IOC getversion IOCTL supported */
 
-static void do_log(int loglevel, const char *format, ...)
+static void GCC_FMT_ATTR(2, 3) do_log(int loglevel, const char *format, ...)
 {
     va_list ap;
 
-- 
1.7.7.3

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

* [Qemu-devel] [PATCH 12/12] bt-host: add missing break statement
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (10 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 11/12] virtfs-proxy-helper: Add missing printf format attribute Stefan Hajnoczi
@ 2012-01-13 10:51 ` Stefan Hajnoczi
  2012-01-13 16:53 ` [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Anthony Liguori
  12 siblings, 0 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2012-01-13 10:51 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: qemu-devel, Stefan Hajnoczi

The switch statement in bt_host_read() is missing a break in one case.
Andrzej Zaborowski <andrew.zaborowski@intel.com> confirmed that this is
not an intentional fall-through.

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

diff --git a/bt-host.c b/bt-host.c
index df5b7cd..0d3ad28 100644
--- a/bt-host.c
+++ b/bt-host.c
@@ -130,6 +130,7 @@ static void bt_host_read(void *opaque)
             pktlen = MIN(pkt[2] + 3, s->len);
             s->len -= pktlen;
             pkt += pktlen;
+            break;
 
         default:
         bad_pkt:
-- 
1.7.7.3

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

* Re: [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012
  2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
                   ` (11 preceding siblings ...)
  2012-01-13 10:51 ` [Qemu-devel] [PATCH 12/12] bt-host: add missing break statement Stefan Hajnoczi
@ 2012-01-13 16:53 ` Anthony Liguori
  12 siblings, 0 replies; 14+ messages in thread
From: Anthony Liguori @ 2012-01-13 16:53 UTC (permalink / raw)
  To: Stefan Hajnoczi; +Cc: qemu-devel

On 01/13/2012 04:51 AM, Stefan Hajnoczi wrote:
> The following changes since commit bee5a5fb11de34aa422cfc830adbd51cfc8f5b55:
>
>    cris: Update paths to match the move of tests/cris (2012-01-13 11:09:56 +0100)

Pulled.  Thanks.

Regards,

Anthony Liguori

> are available in the git repository at:
>    git://github.com/stefanha/qemu.git trivial-patches
>
> Aurelien Jarno (1):
>        tcg-arm: fix a typo in comments
>
> Stefan Berger (1):
>        hmp: Fix freeing of PciInfoList
>
> Stefan Hajnoczi (4):
>        vvfat: avoid leaking file descriptor in commit_one_file()
>        vnc: fix no-lock-key-sync strncmp() length
>        omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS
>        bt-host: add missing break statement
>
> Stefan Weil (6):
>        configure: Modify detection of supported warning options
>        Spelling fixes in comments and documentation
>        Add 'fall through' comments to case statements without break
>        virtfs-proxy-helper: Fix compilation on newer systems
>        virtfs-proxy-helper: Clean include files
>        virtfs-proxy-helper: Add missing printf format attribute
>
>   block/vvfat.c                 |    3 +++
>   bt-host.c                     |    1 +
>   configure                     |    2 +-
>   docs/writing-qmp-commands.txt |    2 +-
>   exec.c                        |    2 +-
>   fsdev/virtfs-proxy-helper.c   |   19 ++++---------------
>   hmp.c                         |    8 ++++----
>   hw/omap_dss.c                 |    4 ++--
>   hw/pcnet.c                    |    1 +
>   json-lexer.c                  |    1 +
>   memory.h                      |    4 ++--
>   qemu-ga.c                     |    2 +-
>   qemu-option.c                 |    4 ++++
>   tcg/arm/tcg-target.c          |    2 +-
>   ui/vnc.c                      |    2 +-
>   15 files changed, 28 insertions(+), 29 deletions(-)
>

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

end of thread, other threads:[~2012-01-13 16:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-13 10:51 [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 01/12] configure: Modify detection of supported warning options Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 02/12] tcg-arm: fix a typo in comments Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 03/12] Spelling fixes in comments and documentation Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 04/12] vvfat: avoid leaking file descriptor in commit_one_file() Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 05/12] vnc: fix no-lock-key-sync strncmp() length Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 06/12] omap_dss: correct chip[1] index in RFBI_READ/RFBI_STATUS Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 07/12] Add 'fall through' comments to case statements without break Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 08/12] hmp: Fix freeing of PciInfoList Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 09/12] virtfs-proxy-helper: Fix compilation on newer systems Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 10/12] virtfs-proxy-helper: Clean include files Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 11/12] virtfs-proxy-helper: Add missing printf format attribute Stefan Hajnoczi
2012-01-13 10:51 ` [Qemu-devel] [PATCH 12/12] bt-host: add missing break statement Stefan Hajnoczi
2012-01-13 16:53 ` [Qemu-devel] [PULL 00/12] Trivial patches for 6 to 13 January 2012 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.