[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20241004172335.386904-1-eahariha@linux.microsoft.com>
Date: Fri, 4 Oct 2024 17:23:31 +0000
From: Easwar Hariharan <eahariha@...ux.microsoft.com>
To: Russell King <linux@...linux.org.uk>,
Jason Gunthorpe <jgg@...pe.ca>,
Lu Baolu <baolu.lu@...ux.intel.com>,
"Russell King (Oracle)" <rmk+kernel@...linux.org.uk>,
Vasant Hegde <vasant.hegde@....com>,
Robin Murphy <robin.murphy@....com>,
Chen Haonan <chen.haonan2@....com.cn>,
Easwar Hariharan <eahariha@...ux.microsoft.com>,
linux-arm-kernel@...ts.infradead.org (moderated list:ARM PORT),
linux-kernel@...r.kernel.org (open list)
Cc: jacob.pan@...ux.microsoft.com
Subject: [PATCH] ARM/dma-mapping: Disambiguate ops from iommu_ops in IOMMU core
The architecture dma ops collides with the struct iommu_ops {} defined in
/include/linux/iommu.h. This isn't a major issue, just a nagging annoyance.
Rename iommu_ops to arm_dma_iommu_ops to disambiguate and better match the
other architectures. No functional changes intended.
Signed-off-by: Easwar Hariharan <eahariha@...ux.microsoft.com>
---
arch/arm/mm/dma-mapping.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index 88c2d68a69c9e..51b5319e8f519 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -1510,7 +1510,7 @@ static void arm_iommu_sync_single_for_device(struct device *dev,
__dma_page_cpu_to_dev(page, offset, size, dir);
}
-static const struct dma_map_ops iommu_ops = {
+static const struct dma_map_ops arm_dma_iommu_ops = {
.alloc = arm_iommu_alloc_attrs,
.free = arm_iommu_free_attrs,
.mmap = arm_iommu_mmap_attrs,
@@ -1680,7 +1680,7 @@ int arm_iommu_attach_device(struct device *dev,
if (err)
return err;
- set_dma_ops(dev, &iommu_ops);
+ set_dma_ops(dev, &arm_dma_iommu_ops);
return 0;
}
EXPORT_SYMBOL_GPL(arm_iommu_attach_device);
@@ -1734,7 +1734,7 @@ static void arm_setup_iommu_dma_ops(struct device *dev)
return;
}
- set_dma_ops(dev, &iommu_ops);
+ set_dma_ops(dev, &arm_dma_iommu_ops);
}
static void arm_teardown_iommu_dma_ops(struct device *dev)
--
2.43.0
Powered by blists - more mailing lists