]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: hisilicon/hpre - constify struct debugfs_reg32
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Fri, 8 May 2020 22:35:00 +0000 (00:35 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2020 06:15:00 +0000 (16:15 +1000)
commitb894af912cfd6e2962de383eda24418bb4fa8b6d
tree5f74c00a22bf157899f9b14edbdc0bfd80103743
parent48b61c19bec284d477c6165fc1a120fb806510c2
crypto: hisilicon/hpre - constify struct debugfs_reg32

hpre_cluster_dfx_regs and hpre_com_dfx_regs are 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
  16455    6288     480   23223    5ab7 drivers/crypto/hisilicon/hpre/hpre_main.o

After:
   text    data     bss     dec     hex filename
  16839    5904     480   23223    5ab7 drivers/crypto/hisilicon/hpre/hpre_main.o

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