diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2016-09-28 09:24:13 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2016-09-28 09:24:13 +1000 |
commit | 4e1385e2671cf7ecfa338e59a84e5aa41c459122 (patch) | |
tree | 1601bf21a1e2416fe01dcc2e50a7f789dadc2c3f /mm | |
parent | 128265957d9dfce5622a68209d8ea843eb00a0d9 (diff) |
mm/shmem.c: constify anon_ops
Every other dentry_operations instance is const, and this one might as
well be.
Link: http://lkml.kernel.org/r/1473890528-7009-1-git-send-email-linux@rasmusvillemoes.dk
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 971fc83e6402..dee06310c9c8 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -4078,7 +4078,7 @@ EXPORT_SYMBOL_GPL(shmem_truncate_range); /* common code */ -static struct dentry_operations anon_ops = { +static const struct dentry_operations anon_ops = { .d_dname = simple_dname }; |