[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/15] hw/arm/smmu: Avoid using inlined functions with external li
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 05/15] hw/arm/smmu: Avoid using inlined functions with external linkage again |
Date: |
Tue, 2 Apr 2024 16:24:20 +0200 |
Similarly to commit 9de9fa5cf2 ("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.
Fix:
C compiler for the host machine: clang (clang 15.0.0 "Apple clang version
15.0.0 (clang-1500.3.9.4)")
...
hw/arm/smmu-common.c:203:43: error: static function
'smmu_hash_remove_by_vmid' is
used in an inline function with external linkage [-Werror,-Wstatic-in-inline]
g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
^
include/hw/arm/smmu-common.h:197:1: note: use 'static' to give inline
function 'smmu_iotlb_inv_vmid' internal linkage
void smmu_iotlb_inv_vmid(SMMUState *s, uint16_t vmid);
^
static
hw/arm/smmu-common.c:139:17: note: 'smmu_hash_remove_by_vmid' declared here
static gboolean smmu_hash_remove_by_vmid(gpointer key, gpointer value,
^
Fixes: ccc3ee3871 ("hw/arm/smmuv3: Add CMDs related to stage-2")
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20240313184954.42513-2-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 4caedb4998..c4b540656c 100644
--- a/hw/arm/smmu-common.c
+++ b/hw/arm/smmu-common.c
@@ -197,7 +197,7 @@ void smmu_iotlb_inv_asid(SMMUState *s, uint16_t asid)
g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_asid, &asid);
}
-inline void smmu_iotlb_inv_vmid(SMMUState *s, uint16_t vmid)
+void smmu_iotlb_inv_vmid(SMMUState *s, uint16_t vmid)
{
trace_smmu_iotlb_inv_vmid(vmid);
g_hash_table_foreach_remove(s->iotlb, smmu_hash_remove_by_vmid, &vmid);
--
2.41.0
- [PULL 00/15] Misc HW patches for 2024-04-02, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 01/15] accel/tcg/plugin: Remove CONFIG_SOFTMMU_GATE definition, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 02/15] gdbstub: Correct invalid mentions of 'softmmu' by 'system', Philippe Mathieu-Daudé, 2024/04/02
- [PULL 03/15] gdbstub/system: Rename 'user_ctx' argument as 'ctx', Philippe Mathieu-Daudé, 2024/04/02
- [PULL 04/15] target/ppc: Rename init_excp_4xx_softmmu() -> init_excp_4xx(), Philippe Mathieu-Daudé, 2024/04/02
- [PULL 05/15] hw/arm/smmu: Avoid using inlined functions with external linkage again,
Philippe Mathieu-Daudé <=
- [PULL 06/15] accel/hvf: Un-inline hvf_arch_supports_guest_debug(), Philippe Mathieu-Daudé, 2024/04/02
- [PULL 07/15] qtest/libqos: Reduce size_to_prdtl() declaration scope, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 08/15] MAINTAINERS: Fix error-report.c entry, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 09/15] hw/i386/pc: Restrict CXL to PCI-based machines, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 10/15] block: Remove unnecessary NULL check in bdrv_pad_request(), Philippe Mathieu-Daudé, 2024/04/02
- [PULL 11/15] plugins: fix -Werror=maybe-uninitialized false-positive, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 12/15] hw/nvme: fix -Werror=maybe-uninitialized, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 13/15] gpio/pca955x: Update maintainer email address, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 15/15] hw/net/virtio-net: fix qemu set used ring flag even vhost started, Philippe Mathieu-Daudé, 2024/04/02
- [PULL 14/15] hw/xen_evtchn: Initialize flush_kvm_routes, Philippe Mathieu-Daudé, 2024/04/02