aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2022-12-16 22:49:23 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-01-05 14:51:27 +0000
commit1e793dd69680a42d3d4ea25450e006322817e0dd (patch)
treed78292f66621321d19b77d4777fed9c255457620
parentbc6bd20ee3538347afb750c4bd06edca4a922897 (diff)
downloadqemu-1e793dd69680a42d3d4ea25450e006322817e0dd.zip
qemu-1e793dd69680a42d3d4ea25450e006322817e0dd.tar.gz
qemu-1e793dd69680a42d3d4ea25450e006322817e0dd.tar.bz2
hw/arm/smmu-common: Reduce smmu_inv_notifiers_mr() scope
This function is not used anywhere outside this file, so we can make the function "static void". 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: 20221216214924.4711-2-philmd@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--hw/arm/smmu-common.c2
-rw-r--r--include/hw/arm/smmu-common.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/hw/arm/smmu-common.c b/hw/arm/smmu-common.c
index 2208385..9f19662 100644
--- a/hw/arm/smmu-common.c
+++ b/hw/arm/smmu-common.c
@@ -483,7 +483,7 @@ static void smmu_unmap_notifier_range(IOMMUNotifier *n)
}
/* Unmap all notifiers attached to @mr */
-inline void smmu_inv_notifiers_mr(IOMMUMemoryRegion *mr)
+static void smmu_inv_notifiers_mr(IOMMUMemoryRegion *mr)
{
IOMMUNotifier *n;
diff --git a/include/hw/arm/smmu-common.h b/include/hw/arm/smmu-common.h
index 21e6234..c5683af 100644
--- a/include/hw/arm/smmu-common.h
+++ b/include/hw/arm/smmu-common.h
@@ -173,7 +173,4 @@ void smmu_iotlb_inv_iova(SMMUState *s, int asid, dma_addr_t iova,
/* Unmap the range of all the notifiers registered to any IOMMU mr */
void smmu_inv_notifiers_all(SMMUState *s);
-/* Unmap the range of all the notifiers registered to @mr */
-void smmu_inv_notifiers_mr(IOMMUMemoryRegion *mr);
-
#endif /* HW_ARM_SMMU_COMMON_H */