diff --git a/mm/shmem.c b/mm/shmem.c
index 971fc83e6402858dd558d0f04609ddad38373eb4..dee06310c9c8bef9435b7c1f56be2cda60a27e54 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
 };