]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: uniphier: make arrays mul and div static const, makes object smaller
authorColin Ian King <colin.king@canonical.com>
Wed, 18 Aug 2021 15:17:46 +0000 (16:17 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 19 Aug 2021 17:21:23 +0000 (18:21 +0100)
commit07b46032019d992dfc21eab19db6f9c04d1ff0aa
treebc25e8f70ce8a402694272347a33747e355835d5
parent75a88fe1526258743a2c7b2d24de109e906a7b19
ASoC: uniphier: make arrays mul and div static const, makes object smaller

Don't populate the arrays mul and div on the stack but instead make them
static const. Makes the object code smaller by 4 bytes.

Before:
   text    data     bss     dec     hex filename
  16226    4984      64   21274    531a ./sound/soc/uniphier/aio-cpu.o

After:
   text    data     bss     dec     hex filename
  16062    5144      64   21270    5316 ./sound/soc/uniphier/aio-cpu.o

(gcc version 10.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20210818151746.38520-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/uniphier/aio-cpu.c