Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: omap-aes - Constify static attribute_group

The only usage of omap_aes_attr_group is to pass its address to
sysfs_{create,remove}_group(), which takes pointers to const struct
attribute_group. Make it const to allow the compiler to put it in
read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Rikard Falkeborn and committed by
Herbert Xu
882f6c60 e5745f34

+1 -1
+1 -1
drivers/crypto/omap-aes.c
··· 1093 1093 NULL, 1094 1094 }; 1095 1095 1096 - static struct attribute_group omap_aes_attr_group = { 1096 + static const struct attribute_group omap_aes_attr_group = { 1097 1097 .attrs = omap_aes_attrs, 1098 1098 }; 1099 1099