qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: JianChunfu <jansef.jian@hj-micro.com>,
	eric.auger@redhat.com, peter.maydell@linaro.org
Cc: qemu-devel@nongnu.org, Roman Kiryanov <rkir@google.com>,
	Will Hollins <whollins@google.com>
Subject: Re: [PATCH-for-10.1] hw/arm/smmu-common: Avoid using inlined functions with external linkage
Date: Fri, 18 Jul 2025 08:11:03 +0200	[thread overview]
Message-ID: <bf6df47b-8815-4d84-a01b-010281187d24@linaro.org> (raw)
In-Reply-To: <20250214072029.515379-1-jansef.jian@hj-micro.com>

Hi,

(sorry for previously missing this patch)

(cc'ing Google folks for 
https://lore.kernel.org/qemu-devel/20250717205735.2345674-1-rkir@google.com/)

On 14/2/25 08:20, JianChunfu wrote:
> Similarly to commit 9de9fa5c ("hw/arm/smmu-common: Avoid using
> inlined functions with external linkage"):
> 
>    None of our code base require / use inlined functions with external
>    linkage. Some places use internal inlining in the hot path. These
>    two functions are certainly not in any hot path and don't justify
>    any inlining, so these are likely oversights rather than intentional.
> 
> Fixes: b8fa4c23 (hw/arm/smmu: Support nesting in the rest of commands)

I suppose b8fa4c233bd was copy/pasted before 0b796f38106 ("hw/arm/smmu:
Avoid using inlined functions with external linkage again").

> Signed-off-by: JianChunfu <jansef.jian@hj-micro.com>

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>

> ---
>   hw/arm/smmu-common.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c
> index 3f8272875..545d763ac 100644
> --- a/hw/arm/smmu-common.c
> +++ b/hw/arm/smmu-common.c
> @@ -298,7 +298,7 @@ void smmu_iotlb_inv_vmid(SMMUState *s, int vmid)
>       g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
>   }
>   
> -inline void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
> +void smmu_iotlb_inv_vmid_s1(SMMUState *s, int vmid)
>   {
>       trace_smmu_iotlb_inv_vmid_s1(vmid);
>       g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid_s1, &vmid);



  reply	other threads:[~2025-07-18  6:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-14  7:20 [PATCH] hw/arm/smmu-common: Avoid using inlined functions with external linkage JianChunfu
2025-07-18  6:11 ` Philippe Mathieu-Daudé [this message]
2025-07-24 16:54   ` [PATCH-for-10.1] " Roman Kiryanov
2025-07-25  9:36     ` Peter Maydell

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=bf6df47b-8815-4d84-a01b-010281187d24@linaro.org \
    --to=philmd@linaro.org \
    --cc=eric.auger@redhat.com \
    --cc=jansef.jian@hj-micro.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rkir@google.com \
    --cc=whollins@google.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).