aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc')
-rw-r--r--fs/proc/proc_misc.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c
index 8f3a6f085c5f..7c22831efd94 100644
--- a/fs/proc/proc_misc.c
+++ b/fs/proc/proc_misc.c
@@ -57,19 +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_BLOCK
61static int diskstats_open(struct inode *inode, struct file *file)
62{
63 return seq_open(file, &diskstats_op);
64}
65static const struct file_operations proc_diskstats_operations = {
66 .open = diskstats_open,
67 .read = seq_read,
68 .llseek = seq_lseek,
69 .release = seq_release,
70};
71#endif
72
73#ifdef CONFIG_MODULES 60#ifdef CONFIG_MODULES
74extern const struct seq_operations modules_op; 61extern const struct seq_operations modules_op;
75static int modules_open(struct inode *inode, struct file *file) 62static int modules_open(struct inode *inode, struct file *file)
@@ -222,9 +209,6 @@ void __init proc_misc_init(void)
222 proc_symlink("mounts", NULL, "self/mounts"); 209 proc_symlink("mounts", NULL, "self/mounts");
223 210
224 /* And now for trickier ones */ 211 /* And now for trickier ones */
225#ifdef CONFIG_BLOCK
226 proc_create("diskstats", 0, NULL, &proc_diskstats_operations);
227#endif
228#ifdef CONFIG_MODULES 212#ifdef CONFIG_MODULES
229 proc_create("modules", 0, NULL, &proc_modules_operations); 213 proc_create("modules", 0, NULL, &proc_modules_operations);
230#endif 214#endif