Skip to contentSkip to conversation

mm/shmem.c: constify anon_ops

PATCH New [email protected] 1 participant 1 message Oct 8, 2016

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 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.

---

 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
diff -puN mm/shmem.c~mm-shmemc-constify-anon_ops 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
 };
 

_