]> git.baikalelectronics.ru Git - kernel.git/commit
dm crypt: Constify static crypt_iv_operations
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Sat, 21 Nov 2020 22:22:48 +0000 (23:22 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 4 Dec 2020 23:04:35 +0000 (18:04 -0500)
commit6904d440f6ee40d091039f61bdec03b7f59f430e
tree943fdf8689fcfa1644fce91cb971c24d88ac4ba8
parentf74630f61921f2bd7409f746bd50d4747d36a931
dm crypt: Constify static crypt_iv_operations

The only usage of these structs is to assign their address to the
iv_gen_ops field in the crypt config struct, which is a pointer to
const. Make them const like the rest of the static crypt_iv_operations
structs. This allows the compiler to put them in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c