2022-11-09 03:04:20

by Yang Li

[permalink] [raw]
Subject: [PATCH -next] iommu: Fix some kernel-doc comments

Make the description of @group to @dev in iommu_device_release_dma_owner()
to clear the below warnings:

drivers/iommu/iommu.c:3235: warning: Function parameter or member 'dev' not described in 'iommu_device_release_dma_owner'
drivers/iommu/iommu.c:3235: warning: Excess function parameter 'group' description in 'iommu_device_release_dma_owner'

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2820
Fixes: 506c4809b2d3 ("iommu: Add device-centric DMA ownership interfaces")
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Yang Li <[email protected]>
---
drivers/iommu/iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 4cb14e44e40f..d299fef4fd81 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -3227,7 +3227,7 @@ EXPORT_SYMBOL_GPL(iommu_group_release_dma_owner);

/**
* iommu_device_release_dma_owner() - Release DMA ownership of a device
- * @group: The device.
+ * @dev: get the group that this device belongs to
*
* Release the DMA ownership claimed by iommu_device_claim_dma_owner().
*/
--
2.20.1.7.g153144c