From: Rikard Falkeborn Date: Thu, 10 Feb 2022 20:28:03 +0000 (+0100) Subject: crypto: omap-aes - Constify static attribute_group X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=882f6c602b65cd384bec2cea4fbfc091a7bbfc50;p=linux.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index a196bb8b17010..581211a926283 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -1093,7 +1093,7 @@ static struct attribute *omap_aes_attrs[] = { NULL, }; -static struct attribute_group omap_aes_attr_group = { +static const struct attribute_group omap_aes_attr_group = { .attrs = omap_aes_attrs, };