Skip to contentSkip to conversation

iommu/amd: Convert comma to semicolon

PATCH In review Chen Ni 2 participants 2 messages Sep 3, 2024 – Sep 4, 2024

Subsystems (2)
lore
Share & tools
lore

Chen Ni

author
#0 lore raw

PATCH 1/1 iommu/amd: Convert comma to semicolon

Replace a comma between expression statements by a semicolon.

---
 drivers/iommu/amd/io_pgtable_v2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iommu/amd/io_pgtable_v2.c +3 -3
index 664e91c88748..67f1fd8fab07 100644
@@ -373,9 +373,9 @@ static struct io_pgtable *v2_alloc_pgtable(struct io_pgtable_cfg *cfg, void *coo
 	pgtable->iop.ops.unmap_pages  = iommu_v2_unmap_pages;
 	pgtable->iop.ops.iova_to_phys = iommu_v2_iova_to_phys;
 
-	cfg->pgsize_bitmap = AMD_IOMMU_PGSIZES_V2,
-	cfg->ias           = ias,
-	cfg->oas           = IOMMU_OUT_ADDR_BIT_SIZE,
+	cfg->pgsize_bitmap = AMD_IOMMU_PGSIZES_V2;
+	cfg->ias           = ias;
+	cfg->oas           = IOMMU_OUT_ADDR_BIT_SIZE;
 	cfg->tlb           = &v2_flush_ops;
 
 	return &pgtable->iop;
Signature · 1 line
2.25.1
maintainer
#1 lore raw

Hi Chen,

Quoted 1 line · Chen Ni

Replace a comma between expression statements by a semicolon.

Thanks for the fix. Jason already have same fix as part of his io-pgtable refactoring series [1].

[1]
https://lore.kernel.org/linux-iommu/[email protected]/T/#m79d88869627b02eed4b954d31c8b96090f3e0b5c

-Vasant

Quoted 23 lines
---
 drivers/iommu/amd/io_pgtable_v2.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iommu/amd/io_pgtable_v2.c +3 -3
index 664e91c88748..67f1fd8fab07 100644
@@ -373,9 +373,9 @@ static struct io_pgtable *v2_alloc_pgtable(struct io_pgtable_cfg *cfg, void *coo
 	pgtable->iop.ops.unmap_pages  = iommu_v2_unmap_pages;
 	pgtable->iop.ops.iova_to_phys = iommu_v2_iova_to_phys;
 
-	cfg->pgsize_bitmap = AMD_IOMMU_PGSIZES_V2,
-	cfg->ias           = ias,
-	cfg->oas           = IOMMU_OUT_ADDR_BIT_SIZE,
+	cfg->pgsize_bitmap = AMD_IOMMU_PGSIZES_V2;
+	cfg->ias           = ias;
+	cfg->oas           = IOMMU_OUT_ADDR_BIT_SIZE;
 	cfg->tlb           = &v2_flush_ops;
 
 	return &pgtable->iop;