fs/proc: use __ro_after_init
[linux-2.6-block.git] / fs / proc / thread_self.c
index 6c1a5471633750f43499ff10453429edf40e7e2b..9d2efaca499fd0b136cc518a20babf8919ba18b6 100644 (file)
@@ -1,4 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0
+#include <linux/cache.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/pid_namespace.h>
@@ -30,7 +31,7 @@ static const struct inode_operations proc_thread_self_inode_operations = {
        .get_link       = proc_thread_self_get_link,
 };
 
-static unsigned thread_self_inum;
+static unsigned thread_self_inum __ro_after_init;
 
 int proc_setup_thread_self(struct super_block *s)
 {