qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 0/2] 9p queue 2025-07-16
@ 2025-07-16 12:44 Christian Schoenebeck
  2025-07-16 12:44 ` [PULL 1/2] fsdev/9p-marshal: move G_GNUC_PRINTF to header Christian Schoenebeck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Christian Schoenebeck @ 2025-07-16 12:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: Greg Kurz, Sean Wei, Philippe Mathieu-Daudé

The following changes since commit c079d3a31e45093286c65f8ca5350beb3a4404a9:

  Merge tag 'pull-10.1-rc0-maintainer-140725-1' of https://gitlab.com/stsquad/qemu into staging (2025-07-15 00:12:07 -0400)

are available in the Git repository at:

  https://github.com/cschoenebeck/qemu.git tags/pull-9p-20250716

for you to fetch changes up to 44f51c1a3cf435daa82eb757740b59b1fd4fe71c:

  hw/9pfs: move G_GNUC_PRINTF to header (2025-07-16 14:18:48 +0200)

----------------------------------------------------------------
9pfs changes:

* Tightens printf-style format checks. No behaviour change.

----------------------------------------------------------------
Sean Wei (2):
      fsdev/9p-marshal: move G_GNUC_PRINTF to header
      hw/9pfs: move G_GNUC_PRINTF to header

 fsdev/9p-marshal.c | 3 +--
 fsdev/9p-marshal.h | 3 ++-
 hw/9pfs/9p.c       | 3 +--
 hw/9pfs/9p.h       | 3 ++-
 4 files changed, 6 insertions(+), 6 deletions(-)


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

* [PULL 2/2] hw/9pfs: move G_GNUC_PRINTF to header
  2025-07-16 12:44 [PULL 0/2] 9p queue 2025-07-16 Christian Schoenebeck
  2025-07-16 12:44 ` [PULL 1/2] fsdev/9p-marshal: move G_GNUC_PRINTF to header Christian Schoenebeck
@ 2025-07-16 12:44 ` Christian Schoenebeck
  2025-07-17 20:56 ` [PULL 0/2] 9p queue 2025-07-16 Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Christian Schoenebeck @ 2025-07-16 12:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: Greg Kurz, Sean Wei, Philippe Mathieu-Daudé

From: Sean Wei <me@sean.taipei>

v9fs_path_sprintf() is annotated with G_GNUC_PRINTF(2, 3) in
hw/9pfs/9p.c, but the prototype in hw/9pfs/9p.h is missing the
attribute, so callers that include only the header do not get format
checking.

Move the annotation to the header and delete the duplicate in the
source file. No behavior change.

Signed-off-by: Sean Wei <me@sean.taipei>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20250613.qemu.9p.02@sean.taipei>
[CS: fix code style (max. 80 chars per line)]
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
---
 hw/9pfs/9p.c | 3 +--
 hw/9pfs/9p.h | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index 8b001b9112..acfa7db4e1 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -201,8 +201,7 @@ void v9fs_path_free(V9fsPath *path)
 }
 
 
-void G_GNUC_PRINTF(2, 3)
-v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...)
+void v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...)
 {
     va_list ap;
 
diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h
index 259ad32ed1..65cc45e344 100644
--- a/hw/9pfs/9p.h
+++ b/hw/9pfs/9p.h
@@ -456,7 +456,8 @@ static inline uint8_t v9fs_request_cancelled(V9fsPDU *pdu)
 void coroutine_fn v9fs_reclaim_fd(V9fsPDU *pdu);
 void v9fs_path_init(V9fsPath *path);
 void v9fs_path_free(V9fsPath *path);
-void v9fs_path_sprintf(V9fsPath *path, const char *fmt, ...);
+void G_GNUC_PRINTF(2, 3) v9fs_path_sprintf(V9fsPath *path, const char *fmt,
+                                           ...);
 void v9fs_path_copy(V9fsPath *dst, const V9fsPath *src);
 size_t v9fs_readdir_response_size(V9fsString *name);
 int v9fs_name_to_path(V9fsState *s, V9fsPath *dirpath,
-- 
2.30.2



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

* [PULL 1/2] fsdev/9p-marshal: move G_GNUC_PRINTF to header
  2025-07-16 12:44 [PULL 0/2] 9p queue 2025-07-16 Christian Schoenebeck
@ 2025-07-16 12:44 ` Christian Schoenebeck
  2025-07-16 12:44 ` [PULL 2/2] hw/9pfs: " Christian Schoenebeck
  2025-07-17 20:56 ` [PULL 0/2] 9p queue 2025-07-16 Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Christian Schoenebeck @ 2025-07-16 12:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: Greg Kurz, Sean Wei, Philippe Mathieu-Daudé

From: Sean Wei <me@sean.taipei>

v9fs_string_sprintf() is annotated with G_GNUC_PRINTF(2, 3) in
9p-marshal.c, but the prototype in fsdev/9p-marshal.h is missing the
attribute, so callers that include only the header do not get format
checking.

Move the annotation to the header and delete the duplicate in the
source file. No behavior change.

Signed-off-by: Sean Wei <me@sean.taipei>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250613.qemu.9p.01@sean.taipei>
[CS: fix code style (max. 80 chars per line)]
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
---
 fsdev/9p-marshal.c | 3 +--
 fsdev/9p-marshal.h | 3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fsdev/9p-marshal.c b/fsdev/9p-marshal.c
index f9b0336cd5..3455580703 100644
--- a/fsdev/9p-marshal.c
+++ b/fsdev/9p-marshal.c
@@ -27,8 +27,7 @@ void v9fs_string_free(V9fsString *str)
     str->size = 0;
 }
 
-void G_GNUC_PRINTF(2, 3)
-v9fs_string_sprintf(V9fsString *str, const char *fmt, ...)
+void v9fs_string_sprintf(V9fsString *str, const char *fmt, ...)
 {
     va_list ap;
 
diff --git a/fsdev/9p-marshal.h b/fsdev/9p-marshal.h
index f1abbe151c..8995e42067 100644
--- a/fsdev/9p-marshal.h
+++ b/fsdev/9p-marshal.h
@@ -76,7 +76,8 @@ static inline void v9fs_string_init(V9fsString *str)
     str->size = 0;
 }
 void v9fs_string_free(V9fsString *str);
-void v9fs_string_sprintf(V9fsString *str, const char *fmt, ...);
+void G_GNUC_PRINTF(2, 3) v9fs_string_sprintf(V9fsString *str, const char *fmt,
+                                             ...);
 void v9fs_string_copy(V9fsString *lhs, V9fsString *rhs);
 
 #endif
-- 
2.30.2



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

* Re: [PULL 0/2] 9p queue 2025-07-16
  2025-07-16 12:44 [PULL 0/2] 9p queue 2025-07-16 Christian Schoenebeck
  2025-07-16 12:44 ` [PULL 1/2] fsdev/9p-marshal: move G_GNUC_PRINTF to header Christian Schoenebeck
  2025-07-16 12:44 ` [PULL 2/2] hw/9pfs: " Christian Schoenebeck
@ 2025-07-17 20:56 ` Stefan Hajnoczi
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Hajnoczi @ 2025-07-17 20:56 UTC (permalink / raw)
  To: Christian Schoenebeck
  Cc: qemu-devel, Greg Kurz, Sean Wei, Philippe Mathieu-Daudé

[-- Attachment #1: Type: text/plain, Size: 116 bytes --]

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/10.1 for any user-visible changes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2025-07-17 22:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-16 12:44 [PULL 0/2] 9p queue 2025-07-16 Christian Schoenebeck
2025-07-16 12:44 ` [PULL 1/2] fsdev/9p-marshal: move G_GNUC_PRINTF to header Christian Schoenebeck
2025-07-16 12:44 ` [PULL 2/2] hw/9pfs: " Christian Schoenebeck
2025-07-17 20:56 ` [PULL 0/2] 9p queue 2025-07-16 Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).