From: Nicolin Chen Date: Sat, 14 Jun 2025 06:35:15 +0000 (-0700) Subject: iommufd: Use enum iommu_viommu_type for type in struct iommufd_viommu X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc9c40e3a4faa09dbd643ae1bdaf8ad006c3bc28;p=thirdparty%2Fkernel%2Flinux.git iommufd: Use enum iommu_viommu_type for type in struct iommufd_viommu Replace unsigned int, to make it clear. No functional changes. The viommu_alloc iommu op will be deprecated, so don't change that. Link: https://patch.msgid.link/r/6c6ba5c0cd381594f17ae74355872d78d7a022c0.1749882255.git.nicolinc@nvidia.com Reviewed-by: Kevin Tian Reviewed-by: Jason Gunthorpe Signed-off-by: Nicolin Chen Reviewed-by: Pranjal Shrivastava Reviewed-by: Lu Baolu Signed-off-by: Jason Gunthorpe --- diff --git a/include/linux/iommufd.h b/include/linux/iommufd.h index 498c9a7685065..ac98e49e44feb 100644 --- a/include/linux/iommufd.h +++ b/include/linux/iommufd.h @@ -101,7 +101,7 @@ struct iommufd_viommu { struct list_head veventqs; struct rw_semaphore veventqs_rwsem; - unsigned int type; + enum iommu_viommu_type type; }; /**