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

From
Krzysztof Kozlowski <hidden>
Date
2021-08-20 10:52:18
Also in
linux-tegra, lkml
Reply to
Colin King, 2021-08-19
On 19/08/2021 15:31, 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(-)
Looks good, it's too late for this cycle, so I'll take it after merge
window.


Best regards,
Krzysztof
Thread (4 messages) 4 messages, 3 authors, last reply 2021-09-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help