xen/arm: smmuv3: Constify arm_smmu_get_by_dev() parameter

This function does not modify its parameter 'dev' and it is not supposed
to do it. Therefore, constify it.

Signed-off-by: Michal Orzel <michal.orzel@amd.com>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Henry Wang <Henry.Wang@arm.com>
Reviewed-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
This commit is contained in:
Michal Orzel authored and Julien Grall committed 2023-05-15 09:48:11 +01:00
1 parent 4c507d8a6b
commit b3e4a6def6
1 file changed
+2 -2
+2 -2
View File
@@ -1468,7 +1468,7 @@ static bool arm_smmu_sid_in_range(struct arm_smmu_device *smmu, u32 sid)
return sid < limit;
}
/* Forward declaration */
static struct arm_smmu_device *arm_smmu_get_by_dev(struct device *dev);
static struct arm_smmu_device *arm_smmu_get_by_dev(const struct device *dev);
static int arm_smmu_add_device(u8 devfn, struct device *dev)
{
@@ -2556,7 +2556,7 @@ static int __must_check arm_smmu_iotlb_flush(struct domain *d, dfn_t dfn,
return arm_smmu_iotlb_flush_all(d);
}
static struct arm_smmu_device *arm_smmu_get_by_dev(struct device *dev)
static struct arm_smmu_device *arm_smmu_get_by_dev(const struct device *dev)
{
struct arm_smmu_device *smmu = NULL;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.