From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"John Snow" <jsnow@redhat.com>,
"Alexander Graf" <agraf@csgraf.de>,
"Eric Auger" <eric.auger@redhat.com>,
qemu-block@nongnu.org, "Thomas Huth" <thuth@redhat.com>,
qemu-arm@nongnu.org, "Daniel P. Berrangé" <berrange@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Cameron Esfahani" <dirty@apple.com>,
"Roman Bolshakov" <rbolshakov@ddn.com>
Subject: Re: [PATCH-for-9.0 3/4] qtest/libqos: Un-inline size_to_prdtl()
Date: Wed, 13 Mar 2024 22:35:29 +0100 [thread overview]
Message-ID: <43b500a3-e2c8-42b3-827b-1c74011dd99b@linaro.org> (raw)
In-Reply-To: <CAFEAcA9ZtyRG5G=vLXNJdA3RPKsvLGh-v8MO2tq1mC3ch5_asw@mail.gmail.com>
On 13/3/24 20:39, Peter Maydell wrote:
> On Wed, 13 Mar 2024 at 18:50, Philippe Mathieu-Daudé <philmd@linaro.org> wrote:
>>
>> See previous commit and commit 9de9fa5cf2 ("Avoid using inlined
>> functions with external linkage") for rationale.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> tests/qtest/libqos/ahci.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tests/qtest/libqos/ahci.c b/tests/qtest/libqos/ahci.c
>> index a2c94c6e06..135b23ffd9 100644
>> --- a/tests/qtest/libqos/ahci.c
>> +++ b/tests/qtest/libqos/ahci.c
>> @@ -662,7 +662,7 @@ unsigned ahci_pick_cmd(AHCIQState *ahci, uint8_t port)
>> g_assert_not_reached();
>> }
>>
>> -inline unsigned size_to_prdtl(unsigned bytes, unsigned bytes_per_prd)
>> +unsigned size_to_prdtl(unsigned bytes, unsigned bytes_per_prd)
>> {
>> /* Each PRD can describe up to 4MiB */
>> g_assert_cmphex(bytes_per_prd, <=, 4096 * 1024);
>
> It looks like this function is only used in this file, so
> we could make it static ?
Eh I did check for that, but sure how I missed it...
next prev parent reply other threads:[~2024-03-13 21:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 18:49 [PATCH-for-9.0 0/4] overall: Avoid using inlined functions with external linkage again Philippe Mathieu-Daudé
2024-03-13 18:49 ` [PATCH-for-9.0 1/4] hw/arm/smmu: " Philippe Mathieu-Daudé
2024-03-13 21:08 ` Richard Henderson
2024-03-13 18:49 ` [PATCH-for-9.0 2/4] accel/hvf: Un-inline hvf_arch_supports_guest_debug() Philippe Mathieu-Daudé
2024-03-13 19:40 ` Peter Maydell
2024-03-13 21:08 ` Richard Henderson
2024-03-13 18:49 ` [PATCH-for-9.0 3/4] qtest/libqos: Un-inline size_to_prdtl() Philippe Mathieu-Daudé
2024-03-13 19:39 ` Peter Maydell
2024-03-13 21:35 ` Philippe Mathieu-Daudé [this message]
2024-03-13 18:49 ` [PATCH-for-9.0 4/4] meson: Enable -Wstatic-in-inline Philippe Mathieu-Daudé
2024-03-13 21:09 ` Richard Henderson
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=43b500a3-e2c8-42b3-827b-1c74011dd99b@linaro.org \
--to=philmd@linaro.org \
--cc=agraf@csgraf.de \
--cc=berrange@redhat.com \
--cc=dirty@apple.com \
--cc=eric.auger@redhat.com \
--cc=jsnow@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rbolshakov@ddn.com \
--cc=thuth@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).