Skip to contentSkip to conversation

mfd: gateworks-gsc: Constify static struct attribute_group

PATCH Lee Jones 2 participants 3 messages Mar 1, 2021 – Mar 2, 2021 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

Lee Jones

author
#2 lore raw
Quoted 11 lines · Rikard Falkeborn

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.

---
 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?

Signature · 4 lines
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
#3 lore raw
Quoted 9 lines · Lee Jones
Quoted 7 lines · Rikard Falkeborn

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.

Quoted 9 lines
Quoted 4 lines
---
 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?

I did not recieve any bounce or rejection emails. I have a vague memory that I saw someone mentioning in another mail that there was some problems with LKML and that patches were lost, but I can't find it now, and I'm not sure if it was around the same time as these patches were sent.

Should I resend the series?

/Rikard

author
#4 lore raw
Quoted 20 lines · Rikard Falkeborn
Quoted 9 lines · Lee Jones
Quoted 7 lines · Rikard Falkeborn

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.

Quoted 9 lines
Quoted 4 lines
---
 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?

Quoted 7 lines

I did not recieve any bounce or rejection emails. I have a vague memory that I saw someone mentioning in another mail that there was some problems with LKML and that patches were lost, but I can't find it now, and I'm not sure if it was around the same time as these patches were sent.

Should I resend the series?

Please submit a [RESEND].

If it fails again, I'll apply the patches manually.

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