]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/arm/smmu-common: Avoid using inlined functions with external linkage
authorJianChunfu <jansef.jian@hj-micro.com>
Fri, 14 Feb 2025 07:20:29 +0000 (15:20 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 25 Jul 2025 09:35:18 +0000 (10:35 +0100)
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)
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>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/smmu-common.c

index f39b99e5269dfbce67a203a153569b6d4e782f62..0dcaf2f589710e7bb68226bf08ba4242fd021f71 100644 (file)
@@ -319,7 +319,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);