From: Christian Schoenebeck <qemu_oss@crudebyte.com>
To: qemu-devel@nongnu.org
Cc: "Sean Wei" <me@sean.taipei>, "Greg Kurz" <groug@kaod.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: Re: [PATCH 0/2] virtio-9p: move G_GNUC_PRINTF to header
Date: Fri, 20 Jun 2025 16:17:28 +0200 [thread overview]
Message-ID: <2211604.2JEinP4xG6@silver> (raw)
In-Reply-To: <20250613.qemu.9p@sean.taipei>
On Saturday, June 14, 2025 4:07:40 AM CEST Sean Wei wrote:
> v9fs_string_sprintf() and v9fs_path_sprintf() already have
> G_GNUC_PRINTF annotations in their own *.c files, but the
> prototypes in the corresponding headers lack them. When another
> translation unit includes only the header, -Wformat can no longer
> validate the argument list.
>
> This series relocates the annotations to fsdev/9p-marshal.h and
> hw/9pfs/9p.h, then drops the now-redundant annotations in
> the *.c files. There is no functional change.
>
> I've checked all call sites for these two helper function, all
> of them already passes the correct number of arguments.
>
> A minimal PoC (sent as the next mail in the thread) demo how
> G_GNUC_PRINTF behaves differently when the attribute is present
> only in code.c or code.h file.
>
> --
>
> Sean Wei (3):
> 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 | 2 +-
> hw/9pfs/9p.c | 3 +--
> hw/9pfs/9p.h | 2 +-
> 4 files changed, 4 insertions(+), 6 deletions(-)
>
>
With code style fix queued on 9p.next:
https://github.com/cschoenebeck/qemu/commits/9p.next
Please run scripts/checkpatch.pl next time.
Thanks!
/Christian
next prev parent reply other threads:[~2025-06-20 14:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-14 2:07 [PATCH 0/2] virtio-9p: move G_GNUC_PRINTF to header Sean Wei
2025-06-14 2:08 ` [PATCH 1/2] fsdev/9p-marshal: " Sean Wei
2025-06-16 5:10 ` Philippe Mathieu-Daudé
2025-06-14 2:09 ` [PATCH 2/2] hw/9pfs: " Sean Wei
2025-06-16 5:10 ` Philippe Mathieu-Daudé
2025-06-14 2:09 ` [PoC] show header-vs-source G_GNUC_PRINTF behavior Sean Wei
2025-06-20 14:17 ` Christian Schoenebeck [this message]
2025-06-20 15:04 ` [PATCH 0/2] virtio-9p: move G_GNUC_PRINTF to header Sean Wei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2211604.2JEinP4xG6@silver \
--to=qemu_oss@crudebyte.com \
--cc=groug@kaod.org \
--cc=me@sean.taipei \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.