diff mbox series

[kernel] vfio/spapr_tce: Fix the comment

Message ID 20220714080912.3713509-1-aik@ozlabs.ru
State New
Headers show
Series [kernel] vfio/spapr_tce: Fix the comment | expand

Commit Message

Alexey Kardashevskiy July 14, 2022, 8:09 a.m. UTC
Grepping for "iommu_ops" finds this spot and gives wrong impression
that iommu_ops is used in here, fix the comment.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 drivers/vfio/vfio_iommu_spapr_tce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alex Williamson July 22, 2022, 10:50 p.m. UTC | #1
On Thu, 14 Jul 2022 18:09:12 +1000
Alexey Kardashevskiy <aik@ozlabs.ru> wrote:

> Grepping for "iommu_ops" finds this spot and gives wrong impression
> that iommu_ops is used in here, fix the comment.
> 
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> ---
>  drivers/vfio/vfio_iommu_spapr_tce.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c
> index 708a95e61831..cd7b9c136889 100644
> --- a/drivers/vfio/vfio_iommu_spapr_tce.c
> +++ b/drivers/vfio/vfio_iommu_spapr_tce.c
> @@ -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
diff mbox series

Patch

diff --git a/drivers/vfio/vfio_iommu_spapr_tce.c b/drivers/vfio/vfio_iommu_spapr_tce.c
index 708a95e61831..cd7b9c136889 100644
--- a/drivers/vfio/vfio_iommu_spapr_tce.c
+++ b/drivers/vfio/vfio_iommu_spapr_tce.c
@@ -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;