Skip to contentSkip to conversation

vfio/spapr_tce: Fix the comment

PATCH Applied Alexey Kardashevskiy 2 participants 2 messages Jul 14, 2022 – Jul 22, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio/spapr_tce: Fix the comment

Grepping for "iommu_ops" finds this spot and gives wrong impression that iommu_ops is used in here, fix the comment.

---
 drivers/vfio/vfio_iommu_spapr_tce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/vfio_iommu_spapr_tce.c +1 -1
index 708a95e61831..cd7b9c136889 100644
@@ -1266,7 +1266,7 @@ static int tce_iommu_attach_group(void *iommu_data,
 		goto unlock_exit;
 	}
 
-	/* Check if new group has the same iommu_ops (i.e. compatible) */
+	/* Check if new group has the same iommu_table_group_ops (i.e. compatible) */
 	list_for_each_entry(tcegrp, &container->group_list, next) {
 		struct iommu_table_group *table_group_tmp;
 
Signature · 1 line
2.30.2
#1 lore raw
Quoted 13 lines · On Thu, 14 Jul 2022 18:09:12 +1000 Alexey Kardashevskiy <[email protected]> wrote:

Grepping for "iommu_ops" finds this spot and gives wrong impression that iommu_ops is used in here, fix the comment.

---
 drivers/vfio/vfio_iommu_spapr_tce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/vfio_iommu_spapr_tce.c +0 -0
index 708a95e61831..cd7b9c136889 100644

drivers/vfio/vfio_iommu_spapr_tce.c static int tce_iommu_attach_group(void *iommu_data, · line 1272

Quoted 8 lines
drivers/vfio/vfio_iommu_spapr_tce.c +1 -1
@@ -1266,7 +1266,7 @@ static int tce_iommu_attach_group(void *iommu_data,
 		goto unlock_exit;
 	}
 
-	/* Check if new group has the same iommu_ops (i.e. compatible) */
+	/* Check if new group has the same iommu_table_group_ops (i.e. compatible) */
 	list_for_each_entry(tcegrp, &container->group_list, next) {
 		struct iommu_table_group *table_group_tmp;
 

Applied to vfio next branch for v5.20 with a conversion to a multi-line comment to avoid the long line. Thanks,

Alex