[PATCH] iommufd: update outdated comment for renamed iommufd_hw_pagetable_alloc()

Kexin Sun posted 1 patch 1 week, 6 days ago
drivers/iommu/iommufd/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] iommufd: update outdated comment for renamed iommufd_hw_pagetable_alloc()
Posted by Kexin Sun 1 week, 6 days ago
The function iommufd_hw_pagetable_alloc() was renamed to
iommufd_hwpt_paging_alloc() by commit 89db31635c87
("iommufd: Derive iommufd_hwpt_paging from
iommufd_hw_pagetable").  Update the stale reference in
iommufd_device_auto_get_domain().

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
---
 drivers/iommu/iommufd/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/iommufd/device.c b/drivers/iommu/iommufd/device.c
index 344d620cdecc..2ae06372d63c 100644
--- a/drivers/iommu/iommufd/device.c
+++ b/drivers/iommu/iommufd/device.c
@@ -866,7 +866,7 @@ iommufd_device_auto_get_domain(struct iommufd_device *idev, ioasid_t pasid,
 {
 	/*
 	 * iommufd_hw_pagetable_attach() is called by
-	 * iommufd_hw_pagetable_alloc() in immediate attachment mode, same as
+	 * iommufd_hwpt_paging_alloc() in immediate attachment mode, same as
 	 * iommufd_device_do_attach(). So if we are in this mode then we prefer
 	 * to use the immediate_attach path as it supports drivers that can't
 	 * directly allocate a domain.
-- 
2.25.1
Re: [PATCH] iommufd: update outdated comment for renamed iommufd_hw_pagetable_alloc()
Posted by Jason Gunthorpe 1 week, 2 days ago
On Sat, Mar 21, 2026 at 06:57:59PM +0800, Kexin Sun wrote:
> The function iommufd_hw_pagetable_alloc() was renamed to
> iommufd_hwpt_paging_alloc() by commit 89db31635c87
> ("iommufd: Derive iommufd_hwpt_paging from
> iommufd_hw_pagetable").  Update the stale reference in
> iommufd_device_auto_get_domain().
> 
> Assisted-by: unnamed:deepseek-v3.2 coccinelle
> Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
> ---
>  drivers/iommu/iommufd/device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Jason