diff options
author | Robin Murphy <robin.murphy@arm.com> | 2023-11-21 18:03:57 +0000 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-11-27 11:03:13 +0100 |
commit | 48ed12788ed8aa099e463c2febcd3f06fb71c68c (patch) | |
tree | b5f98d55fce98c68f6e0a7b032054cebfb9dafa2 /scripts/gdb/linux/interrupts.py | |
parent | f1aad9df93f39267e890836a28d22511f23474e1 (diff) | |
download | linux-48ed12788ed8aa099e463c2febcd3f06fb71c68c.tar.gz linux-48ed12788ed8aa099e463c2febcd3f06fb71c68c.tar.bz2 linux-48ed12788ed8aa099e463c2febcd3f06fb71c68c.zip |
iommu: Factor out some helpers
The pattern for picking the first device out of the group list is
repeated a few times now, so it's clearly worth factoring out, which
also helps hide the iommu_group_dev detail from places that don't need
to know. Similarly, the safety check for dev_iommu_ops() at certain
public interfaces starts looking a bit repetitive, and might not be
completely obvious at first glance, so let's factor that out for clarity
as well, in preparation for more uses of both.
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/566cbd161546caa6aed49662c9b3e8f09dc9c3cf.1700589539.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/gdb/linux/interrupts.py')
0 files changed, 0 insertions, 0 deletions