summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-02 10:37:44 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2017-08-02 10:37:44 +1000
commit7626bc60ecc4db5e1b7378f9df427493a74e2108 (patch)
treed41148e36b1b7b4fb47beaedf99be9e2cc323c6b /mm
parent53883c24c506df7c3c29edf292372c94b01b90c3 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/ksm.c b/mm/ksm.c
index 4dc92f138786..0c927e36a639 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -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",
};