mm/shmem.c: constify anon_ops
Subsystems (2)
[email protected]
maintainerPATCH 83/127 mm/shmem.c: constify anon_ops
From: Rasmus Villemoes <[email protected]>
Subject: mm/shmem.c: constify anon_ops
Every other dentry_operations instance is const, and this one might as well be.
Signed-off-by Rasmus Villemoes <[email protected]>
Acked-by Hugh Dickins <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/shmem.c renamed from mm/shmem.c~mm-shmemc-constify-anon_ops +1 -1
@@ -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 };
_