Skip to contentSkip to conversation

iommufd: fix grammar and spelling in comments

PATCH In review weimin xiong 2 participants 2 messages Jul 14

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

PATCH 1/1 iommufd: fix grammar and spelling in comments

From: xiongweimin <[email protected]>

Correct detach kdoc ("device/pasid from"), article use before IOMMUFD_OBJ_*, and "propogated" -> "propagated".

---
 drivers/iommu/iommufd/device.c       | 6 +++---
 drivers/iommu/iommufd/io_pagetable.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/iommu/iommufd/device.c +3 -3
index 170a7005f..f1a45a341 100644
@@ -989,7 +989,7 @@ static int iommufd_device_change_pt(struct iommufd_device *idev,
  * iommufd_device_attach - Connect a device/pasid to an iommu_domain
  * @idev: device to attach
  * @pasid: pasid to attach
- * @pt_id: Input a IOMMUFD_OBJ_IOAS, or IOMMUFD_OBJ_HWPT_PAGING
+ * @pt_id: Input an IOMMUFD_OBJ_IOAS, or IOMMUFD_OBJ_HWPT_PAGING
  *         Output the IOMMUFD_OBJ_HWPT_PAGING ID
  *
  * This connects the device/pasid to an iommu_domain, either automatically
@@ -1022,7 +1022,7 @@ EXPORT_SYMBOL_NS_GPL(iommufd_device_attach, "IOMMUFD");
  * iommufd_device_replace - Change the device/pasid's iommu_domain
  * @idev: device to change
  * @pasid: pasid to change
- * @pt_id: Input a IOMMUFD_OBJ_IOAS, or IOMMUFD_OBJ_HWPT_PAGING
+ * @pt_id: Input an IOMMUFD_OBJ_IOAS, or IOMMUFD_OBJ_HWPT_PAGING
  *         Output the IOMMUFD_OBJ_HWPT_PAGING ID
  *
  * This is the same as::
@@ -1044,7 +1044,7 @@ int iommufd_device_replace(struct iommufd_device *idev, ioasid_t pasid,
 EXPORT_SYMBOL_NS_GPL(iommufd_device_replace, "IOMMUFD");
 
 /**
- * iommufd_device_detach - Disconnect a device/device to an iommu_domain
+ * iommufd_device_detach - Disconnect a device/pasid from an iommu_domain
  * @idev: device to detach
  * @pasid: pasid to detach
  *
drivers/iommu/iommufd/io_pagetable.c +1 -1
index 24d491710..ad15d6d2d 100644
@@ -1513,7 +1513,7 @@ int iopt_table_enforce_dev_resv_regions(struct io_pagetable *iopt,
 		return -EINVAL;
 
 	down_write(&iopt->iova_rwsem);
-	/* FIXME: drivers allocate memory but there is no failure propogated */
+	/* FIXME: drivers allocate memory but there is no failure propagated */
 	iommu_get_resv_regions(dev, &resv_regions);
 
 	list_for_each_entry(resv, &resv_regions, list) {
Signature · 5 lines
2.43.0


No virus found
		Checked by Hillstone Network AntiVirus
#1 lore raw
Quoted 10 lines · weimin xiong

From: xiongweimin <[email protected]>

Correct detach kdoc ("device/pasid from"), article use before IOMMUFD_OBJ_*, and "propogated" -> "propagated".

---
 drivers/iommu/iommufd/device.c       | 6 +++---
 drivers/iommu/iommufd/io_pagetable.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

Applied thanks

Jason