Messages in this thread | | | Date | Sat, 9 Jan 2021 08:15:45 +0900 | From | Dominique Martinet <> | Subject | Re: [PATCH] 9p: Constify static struct v9fs_attr_group |
| |
Rikard Falkeborn wrote on Fri, Jan 08, 2021 at 11:46:50PM +0100: > The only usage of v9fs_attr_group is to pass its address to > sysfs_create_group() and sysfs_create_group(), both 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>
Thanks, taking it. -- Dominique
| |