]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iommufd: update outdated comment for renamed iommufd_hw_pagetable_alloc()
authorKexin Sun <kexinsun@smail.nju.edu.cn>
Sat, 21 Mar 2026 10:57:59 +0000 (18:57 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 25 Mar 2026 12:35:14 +0000 (09:35 -0300)
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().

Link: https://patch.msgid.link/r/20260321105759.6832-1-kexinsun@smail.nju.edu.cn
Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/device.c

index 344d620cdecc46a2557ccfedd5b4cb86d8c4e425..2ae06372d63c9c2d0223dad0d67153a8bb076821 100644 (file)
@@ -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.