diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-02 10:37:44 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-08-02 10:37:44 +1000 |
commit | 7626bc60ecc4db5e1b7378f9df427493a74e2108 (patch) | |
tree | d41148e36b1b7b4fb47beaedf99be9e2cc323c6b /mm | |
parent | 53883c24c506df7c3c29edf292372c94b01b90c3 (diff) |
mm/ksm.c: constify attribute_group structures
attribute_group are not supposed to change at runtime. All functions
working with attribute_group provided by <linux/sysfs.h> work with const
attribute_group. So mark the non-const structs as const.
Link: http://lkml.kernel.org/r/1501157167-3706-2-git-send-email-arvind.yadav.cs@gmail.com
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/ksm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3042,7 +3042,7 @@ static struct attribute *ksm_attrs[] = { NULL, }; -static struct attribute_group ksm_attr_group = { +static const struct attribute_group ksm_attr_group = { .attrs = ksm_attrs, .name = "ksm", }; |