Skip to content

Commit

Permalink
mm/shmem.c: constify anon_ops
Browse files Browse the repository at this point in the history
Every other dentry_operations instance is const, and this one might as
well be.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Rasmus Villemoes <[email protected]>
Acked-by: Hugh Dickins <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Villemoes authored and torvalds committed Oct 8, 2016
1 parent 2d75807 commit 19938e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 19938e3

Please sign in to comment.