]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/sec2 - constify sec_dfx_regs
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 8 May 2020 22:35:02 +0000 (00:35 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2020 06:15:01 +0000 (16:15 +1000)
commit5f0df0c4e78f62c1c80eabdf72acebba41db29a5
tree9494ba51ab09578f189b19caddf05fc07b9d42c4
parentb46631b5adb56c07ba26302843a9f79df9b1022b
crypto: hisilicon/sec2 - constify sec_dfx_regs

sec_dfx_regs is never changed and can therefore be made const.

This allows the compiler to put it in the text section instead of the
data section.

Before:
   text    data     bss     dec     hex filename
  17982    7312     480   25774    64ae drivers/crypto/hisilicon/sec2/sec_main.o

After:
   text    data     bss     dec     hex filename
  18366    6928     480   25774    64ae drivers/crypto/hisilicon/sec2/sec_main.o

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_main.c