diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2023-05-11 06:42:00 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-05-23 08:15:51 +0200 |
commit | 3006b15b364a34a2a19b45bb2948dd6a83c5e1fe (patch) | |
tree | 8a2e7c307e703d3d8427b44efd75c6eb8e4cdf3e /.clang-format | |
parent | iommu: Replace iommu_group_device_count() with list_count_nodes() (diff) | |
download | linux-3006b15b364a34a2a19b45bb2948dd6a83c5e1fe.tar.xz linux-3006b15b364a34a2a19b45bb2948dd6a83c5e1fe.zip |
iommu: Add for_each_group_device()
Convenience macro to iterate over every struct group_device in the group.
Replace all open coded list_for_each_entry's with this macro.
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/2-v5-1b99ae392328+44574-iommu_err_unwind_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format index 0d1ed8776733..0bbb1991defe 100644 --- a/.clang-format +++ b/.clang-format @@ -254,6 +254,7 @@ ForEachMacros: - 'for_each_free_mem_range' - 'for_each_free_mem_range_reverse' - 'for_each_func_rsrc' + - 'for_each_group_device' - 'for_each_group_evsel' - 'for_each_group_member' - 'for_each_hstate' |