Re: [PATCH 1/3] mfd: gateworks-gsc: Constify static struct attribute_group

From: Lee Jones
Date: Mon Mar 01 2021 - 05:01:08 EST


On Sun, 31 Jan 2021, Rikard Falkeborn wrote:

> The only usage of attr_group is to pass its address to
> sysfs_create_group() and sysfs_remove_group(), both which takes pointers
> to const attribute_group structs. Make it const to allow the compiler to
> put it in read-only memory.
>
> Done with the help of coccinelle.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn@xxxxxxxxx>
> ---
> drivers/mfd/gateworks-gsc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

These patches do not seem to be on LKML.

Do you know if they were rejected for some reason?

--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog