aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_misc.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 7c22831efd94..f6d25db98922 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -57,20 +57,6 @@
57#include <asm/div64.h> 57#include <asm/div64.h>
58#include "internal.h" 58#include "internal.h"
59 59
60#ifdef CONFIG_MODULES
61extern const struct seq_operations modules_op;
62static int modules_open(struct inode *inode, struct file *file)
63{
64 return seq_open(file, &modules_op);
65}
66static const struct file_operations proc_modules_operations = {
67 .open = modules_open,
68 .read = seq_read,
69 .llseek = seq_lseek,
70 .release = seq_release,
71};
72#endif
73
74#ifdef CONFIG_PROC_PAGE_MONITOR 60#ifdef CONFIG_PROC_PAGE_MONITOR
75#define KPMSIZE sizeof(u64) 61#define KPMSIZE sizeof(u64)
76#define KPMMASK (KPMSIZE - 1) 62#define KPMMASK (KPMSIZE - 1)
@@ -209,9 +195,6 @@ void __init proc_misc_init(void)
209 proc_symlink("mounts", NULL, "self/mounts"); 195 proc_symlink("mounts", NULL, "self/mounts");
210 196
211 /* And now for trickier ones */ 197 /* And now for trickier ones */
212#ifdef CONFIG_MODULES
213 proc_create("modules", 0, NULL, &proc_modules_operations);
214#endif
215#ifdef CONFIG_SCHEDSTATS 198#ifdef CONFIG_SCHEDSTATS
216 proc_create("schedstat", 0, NULL, &proc_schedstat_operations); 199 proc_create("schedstat", 0, NULL, &proc_schedstat_operations);
217#endif 200#endif