Merge tag 'for-6.1-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave...
[linux-2.6-microblaze.git] / fs / proc / uptime.c
index deb99bc..b5343d2 100644 (file)
@@ -7,6 +7,7 @@
 #include <linux/time.h>
 #include <linux/time_namespace.h>
 #include <linux/kernel_stat.h>
+#include "internal.h"
 
 static int uptime_proc_show(struct seq_file *m, void *v)
 {
@@ -39,7 +40,10 @@ static int uptime_proc_show(struct seq_file *m, void *v)
 
 static int __init proc_uptime_init(void)
 {
-       proc_create_single("uptime", 0, NULL, uptime_proc_show);
+       struct proc_dir_entry *pde;
+
+       pde = proc_create_single("uptime", 0, NULL, uptime_proc_show);
+       pde_make_permanent(pde);
        return 0;
 }
 fs_initcall(proc_uptime_init);