Commit 1dec575
committed
iommufd/selftest: Add a helper to get test device
commit 068e140
Author: Yi Liu <yi.l.liu@intel.com>
Date: Fri Mar 21 10:19:38 2025 -0700
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>
(cherry picked from commit 068e140)
Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Upstream-Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
JIRA: https://issues.redhat.com/browse/RHEL-736001 parent 638fd14 commit 1dec575
1 file changed
+23
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
999 | | - | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
| 999 | + | |
| 1000 | + | |
1003 | 1001 | | |
1004 | 1002 | | |
1005 | 1003 | | |
1006 | | - | |
1007 | 1004 | | |
1008 | 1005 | | |
1009 | 1006 | | |
1010 | 1007 | | |
1011 | 1008 | | |
1012 | | - | |
1013 | | - | |
| 1009 | + | |
1014 | 1010 | | |
1015 | | - | |
| 1011 | + | |
1016 | 1012 | | |
1017 | 1013 | | |
1018 | 1014 | | |
1019 | | - | |
1020 | | - | |
| 1015 | + | |
| 1016 | + | |
1021 | 1017 | | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1022 | 1032 | | |
1023 | 1033 | | |
1024 | 1034 | | |
1025 | | - | |
| 1035 | + | |
1026 | 1036 | | |
1027 | 1037 | | |
1028 | 1038 | | |
1029 | 1039 | | |
1030 | | - | |
1031 | | - | |
| 1040 | + | |
| 1041 | + | |
1032 | 1042 | | |
1033 | 1043 | | |
1034 | 1044 | | |
| |||
0 commit comments