Re: [PATCH 2/2] iommu/sun50i: Constify sun50i_iommu_ops
From: Maxime Ripard
Date: Tue May 26 2020 - 03:56:41 EST
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@xxxxxxxxx>
Acked-by: Maxime Ripard <mripard@xxxxxxxxxx>
Thanks!
Maxime