]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iommufd/selftest: Add container_of helpers
authorNicolin Chen <nicolinc@nvidia.com>
Tue, 5 Nov 2024 20:04:24 +0000 (12:04 -0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 12 Nov 2024 15:46:18 +0000 (11:46 -0400)
commitfd6b853f50c868b03797e7ae87f1ed554aea01e4
tree6e141a8428d52ccc88aa1a81a58083cdf869805a
parent13a750180fc86d41695c8f64d8892412482a401d
iommufd/selftest: Add container_of helpers

Use these inline helpers to shorten those container_of lines.

Note that one of them goes back and forth between iommu_domain and
mock_iommu_domain, which isn't necessary. So drop its container_of.

Link: https://patch.msgid.link/r/518ec64dae2e814eb29fd9f170f58a3aad56c81c.1730836219.git.nicolinc@nvidia.com
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/selftest.c