hw/arm/smmu-common: Reduce smmu_inv_notifiers_mr() scope
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 16 Dec 2022 21:49:23 +0000 (22:49 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Jan 2023 14:51:27 +0000 (14:51 +0000)
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>
hw/arm/smmu-common.c
include/hw/arm/smmu-common.h

index 220838525d4ffa45e9634d8221737487c95f712b..9f196625a2ba0166b471d30594c6abc6a1cf804b 100644 (file)
@@ -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;
 
index 21e62342e92e61bf37a7e458d2db726c85ad716a..c5683af07d676cdca0c2cc8991f5cfdf243585f9 100644 (file)
@@ -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 */