From: Rasmus Villemoes Date: Sat, 8 Oct 2016 00:01:01 +0000 (-0700) Subject: mm/shmem.c: constify anon_ops X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=19938e350adc60f3b9381ae6fc68da40f7d1a9f6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 };