[PATCH v2 03/14] iommufd: Use enum iommu_viommu_type for type in struct iommufd_viommu
Pranjal Shrivastava
praan at google.com
Mon Jun 16 14:45:06 PDT 2025
On Fri, Jun 13, 2025 at 11:35:15PM -0700, Nicolin Chen wrote:
> Replace unsigned init, to make it clear. No functional changes.
Super nit: Typo: s/init/int
>
> The viommu_alloc iommu op will be deprecated, so don't change that.
>
> Reviewed-by: Kevin Tian <kevin.tian at intel.com>
> Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
> Signed-off-by: Nicolin Chen <nicolinc at nvidia.com>
> ---
> include/linux/iommufd.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/linux/iommufd.h b/include/linux/iommufd.h
> index 498c9a768506..ac98e49e44fe 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;
> };
Reviewed-by: Pranjal Shrivastava <praan at google.com>
>
> /**
> --
> 2.43.0
>
More information about the linux-arm-kernel
mailing list