[PATCH 2/2] iommu/sun50i: Constify sun50i_iommu_ops

Maxime Ripard maxime at cerno.tech
Tue May 26 07:56:30 UTC 2020


On Mon, May 25, 2020 at 11:49:58PM +0200, Rikard Falkeborn wrote:
> The struct sun50i_iommu_ops is not modified and can be made const to
> allow the compiler to put it in read-only memory.
> 
> Before:
>    text    data     bss     dec     hex filename
>   14358    2501      64   16923    421b drivers/iommu/sun50i-iommu.o
> 
> After:
>    text    data     bss     dec     hex filename
>   14726    2117      64   16907    420b drivers/iommu/sun50i-iommu.o
> 
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>

Acked-by: Maxime Ripard <mripard at kernel.org>

Thanks!
Maxime


More information about the iommu mailing list