OSDN Git Service

crypto: virtio - constify features[] and id_table[]
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 1 Jul 2020 20:29:36 +0000 (22:29 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jul 2020 08:25:22 +0000 (18:25 +1000)
commitad6a0664c29c698bfe5c46c49f627af6f5bb172b
tree8b6fe32399f1afd6e155c45acc5678faf3b9cb88
parenta024d70ae29825b117f2c80c53345053f074cdc1
crypto: virtio - constify features[] and id_table[]

features[] and id_table[] are not modified and can be made const to
allow the compiler to put them in read-only memory.

Before:
   text    data     bss     dec     hex filename
  11534    2056     160   13750    35b6 drivers/crypto/virtio/virtio_crypto_core.o

After:
   text    data     bss     dec     hex filename
  11630    1992     128   13750    35b6 drivers/crypto/virtio/virtio_crypto_core.o

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