# Re: \[PATCH\] memory: tegra: make the array list static const, makes object smaller

- From: Thierry Reding \<hidden\>
- Date: 2021-08-19 17:26:58 
- List: kernel-janitors
- Page: https://ratatoskr.run/kernel-janitors/2021/08/1483191
- Thread: https://ratatoskr.run/kernel-janitors/2021/08/1482925/t.md

```text
On Thu, Aug 19, 2021 at 02:31:55PM +0100, Colin King wrote:
> From: Colin Ian King <redacted>
> 
> Don't populate the array list on the stack but instead it
> static const. Makes the object code smaller by 110 bytes:
> 
> Before:
>    text    data     bss     dec     hex filename
>   37713   21992      64   59769    e979 .../tegra/tegra210-emc-cc-r21021.o
> 
> After:
>    text    data     bss     dec     hex filename
>   37539   22056      64   59659    e90b .../tegra/tegra210-emc-cc-r21021.o
> 
> (gcc version 10.3.0)
> 
> Signed-off-by: Colin Ian King <redacted>
> ---
>  drivers/memory/tegra/tegra210-emc-cc-r21021.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Wow, didn't think this was going to save us 110 bytes. Nice one!

Acked-by: Thierry Reding <redacted>
```

## Attachments

- [signature.asc](https://ratatoskr.run/kernel-janitors/2021/08/1483191/attachment/0) (application/pgp-signature, 833 bytes)
