From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Emanuele Giuseppe Esposito <eesposit@redhat.com>, qemu-block@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
Markus Armbruster <armbru@redhat.com>,
qemu-devel@nongnu.org, Hanna Reitz <hreitz@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH 3/4] include/sysemu/blockdev.h: move drive_add and inline drive_def
Date: Wed, 24 Nov 2021 08:38:09 +0100 [thread overview]
Message-ID: <fe462ea9-03ec-37e1-1eba-7d6d2f736deb@redhat.com> (raw)
In-Reply-To: <20211124063640.3118897-4-eesposit@redhat.com>
On 11/24/21 07:36, Emanuele Giuseppe Esposito wrote:
> drive_add is only used in softmmu/vl.c, so it can be a static
> function there, and drive_def is only a particular use case of
> qemu_opts_parse_noisily, so it can be inlined.
>
> Also remove drive_mark_claimed_by_board, as it is only defined
> but not implemented (nor used) anywhere.
>
> Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
> ---
> include/sysemu/blockdev.h | 6 ++----
> block/monitor/block-hmp-cmds.c | 2 +-
> blockdev.c | 27 +--------------------------
> softmmu/vl.c | 25 ++++++++++++++++++++++++-
> 4 files changed, 28 insertions(+), 32 deletions(-)
>
> diff --git a/include/sysemu/blockdev.h b/include/sysemu/blockdev.h
> index 32c2d6023c..aacc587a33 100644
> --- a/include/sysemu/blockdev.h
> +++ b/include/sysemu/blockdev.h
> @@ -27,6 +27,8 @@ typedef enum {
> IF_COUNT
> } BlockInterfaceType;
>
> +extern const char *const block_if_name[];
Maybe a cleaner alternative is to ignore the previous patch,
and add a new public method:
const char *block_if_name(BlockInterfaceType iface);
next prev parent reply other threads:[~2021-11-24 7:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-24 6:36 [PATCH 0/4] block: minor refactoring in preparation to the block layer API split Emanuele Giuseppe Esposito
2021-11-24 6:36 ` [PATCH 1/4] block_int: make bdrv_backing_overridden static Emanuele Giuseppe Esposito
2021-11-24 6:36 ` [PATCH 2/4] include/sysemu/blockdev.h: rename if_name in block_if_name Emanuele Giuseppe Esposito
2021-11-24 7:36 ` Philippe Mathieu-Daudé
2021-11-24 6:36 ` [PATCH 3/4] include/sysemu/blockdev.h: move drive_add and inline drive_def Emanuele Giuseppe Esposito
2021-11-24 7:38 ` Philippe Mathieu-Daudé [this message]
2021-11-24 6:36 ` [PATCH 4/4] include/sysemu/blockdev.h: remove drive_get_max_devs Emanuele Giuseppe Esposito
2021-11-24 7:40 ` Philippe Mathieu-Daudé
2021-11-29 13:59 ` [PATCH 0/4] block: minor refactoring in preparation to the block layer API split Stefan Hajnoczi
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=fe462ea9-03ec-37e1-1eba-7d6d2f736deb@redhat.com \
--to=philmd@redhat.com \
--cc=armbru@redhat.com \
--cc=eesposit@redhat.com \
--cc=hreitz@redhat.com \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/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 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).