mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
iommufd: Use enum iommu_veventq_type for type in struct iommufd_veventq
Replace unsigned int, to make it clear. No functional changes. Link: https://patch.msgid.link/r/208a260c100a00667d3799feaad1260745f96c6b.1749882255.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> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Pranjal Shrivastava <praan@google.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
fc9c40e3a4
commit
62b62a55bd
|
|
@ -526,7 +526,7 @@ struct iommufd_veventq {
|
|||
struct list_head node; /* for iommufd_viommu::veventqs */
|
||||
struct iommufd_vevent lost_events_header;
|
||||
|
||||
unsigned int type;
|
||||
enum iommu_veventq_type type;
|
||||
unsigned int depth;
|
||||
|
||||
/* Use common.lock for protection */
|
||||
|
|
@ -581,7 +581,8 @@ iommufd_get_viommu(struct iommufd_ucmd *ucmd, u32 id)
|
|||
}
|
||||
|
||||
static inline struct iommufd_veventq *
|
||||
iommufd_viommu_find_veventq(struct iommufd_viommu *viommu, u32 type)
|
||||
iommufd_viommu_find_veventq(struct iommufd_viommu *viommu,
|
||||
enum iommu_veventq_type type)
|
||||
{
|
||||
struct iommufd_veventq *veventq, *next;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user