]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommufd/selftest: Add a helper to get test device
authorYi Liu <yi.l.liu@intel.com>
Fri, 21 Mar 2025 17:19:38 +0000 (10:19 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Mar 2025 13:18:31 +0000 (10:18 -0300)
commit068e14025158986842f783147f9e41a59fbc97cd
tree1487df9483e4b9e440c1b4d2a7da2eae7b9630bf
parent9eb59204d5197b4add63968c8c5b7633631f9a5a
iommufd/selftest: Add a helper to get test device

There is need to get the selftest device (sobj->type == TYPE_IDEV) in
multiple places, so have a helper to for it.

Link: https://patch.msgid.link/r/20250321171940.7213-17-yi.l.liu@intel.com
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/selftest.c