From: Philippe Mathieu-Daudé Date: Wed, 12 Jun 2024 12:06:20 +0000 (+0200) Subject: memory: Constify IOMMUTLBEvent in memory_region_notify_iommu() X-Git-Tag: v9.1.0-rc0~66^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb5b2896f608d9c0dcd53375987db2377337f752;p=thirdparty%2Fqemu.git memory: Constify IOMMUTLBEvent in memory_region_notify_iommu() @event access is read-only. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Peter Xu Message-Id: <20240612132532.85928-3-philmd@linaro.org> --- diff --git a/include/exec/memory.h b/include/exec/memory.h index 2bf5e23b6ab..2d7c278b9f4 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -1837,7 +1837,7 @@ uint64_t memory_region_iommu_get_min_page_size(IOMMUMemoryRegion *iommu_mr); */ void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr, int iommu_idx, - IOMMUTLBEvent event); + const IOMMUTLBEvent event); /** * memory_region_notify_iommu_one: notify a change in an IOMMU translation diff --git a/system/memory.c b/system/memory.c index f3a37c97c1f..47c600df635 100644 --- a/system/memory.c +++ b/system/memory.c @@ -2052,7 +2052,7 @@ void memory_region_unmap_iommu_notifier_range(IOMMUNotifier *notifier) void memory_region_notify_iommu(IOMMUMemoryRegion *iommu_mr, int iommu_idx, - IOMMUTLBEvent event) + const IOMMUTLBEvent event) { IOMMUNotifier *iommu_notifier;