RE: [PATCH v4 2/3] iommufd: Move iommufd_sw_msi and related functions to driver.c

From: Tian, Kevin
Date: Wed Mar 12 2025 - 03:38:47 EST


> From: Nicolin Chen <nicolinc@xxxxxxxxxx>
> Sent: Friday, March 7, 2025 5:01 AM
>
> To provide the iommufd_sw_msi() to the iommu core that is under a
> different
> Kconfig, move it and its related functions to driver.c. Then, stub it into
> the iommu-priv header. The iommufd_sw_msi_install() continues to be used
> by
> iommufd internal, so put it in the private header.
>
> Since this affects the module size, here is before-n-after size comparison:
> [Before]
> text data bss dec hex filename
> 18797 848 56 19701 4cf5 drivers/iommu/iommufd/device.o
> 722 44 0 766 2fe drivers/iommu/iommufd/driver.o
> [After]
> text data bss dec hex filename
> 17671 808 56 18535 4867 drivers/iommu/iommufd/device.o
> 1900 100 0 2000 7d0 drivers/iommu/iommufd/driver.o
>
> Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx>

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>