|
@@ -115,18 +115,6 @@ static const struct file_operations proc_zoneinfo_file_operations = {
|
|
.release = seq_release,
|
|
.release = seq_release,
|
|
};
|
|
};
|
|
|
|
|
|
-static int version_read_proc(char *page, char **start, off_t off,
|
|
|
|
- int count, int *eof, void *data)
|
|
|
|
-{
|
|
|
|
- int len;
|
|
|
|
-
|
|
|
|
- len = snprintf(page, PAGE_SIZE, linux_proc_banner,
|
|
|
|
- utsname()->sysname,
|
|
|
|
- utsname()->release,
|
|
|
|
- utsname()->version);
|
|
|
|
- return proc_calc_metrics(page, start, off, count, eof, len);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
extern const struct seq_operations cpuinfo_op;
|
|
extern const struct seq_operations cpuinfo_op;
|
|
static int cpuinfo_open(struct inode *inode, struct file *file)
|
|
static int cpuinfo_open(struct inode *inode, struct file *file)
|
|
{
|
|
{
|
|
@@ -680,7 +668,6 @@ void __init proc_misc_init(void)
|
|
char *name;
|
|
char *name;
|
|
int (*read_proc)(char*,char**,off_t,int,int*,void*);
|
|
int (*read_proc)(char*,char**,off_t,int,int*,void*);
|
|
} *p, simple_ones[] = {
|
|
} *p, simple_ones[] = {
|
|
- {"version", version_read_proc},
|
|
|
|
#ifdef CONFIG_PROC_HARDWARE
|
|
#ifdef CONFIG_PROC_HARDWARE
|
|
{"hardware", hardware_read_proc},
|
|
{"hardware", hardware_read_proc},
|
|
#endif
|
|
#endif
|