From 8ed6ba981b192471a65e4499f63ea02c6d49e471 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 19 Feb 2003 01:07:28 -0800 Subject: [PATCH] [PATCH] remove some dead mtrr code This patch removes the devfs interface code in mtrr that has been stubbed out by an ifdef forever. It's one of the few remaining users of regular files on devfs so there's some urge for me to get rid of it :) --- arch/i386/kernel/cpu/mtrr/if.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/arch/i386/kernel/cpu/mtrr/if.c b/arch/i386/kernel/cpu/mtrr/if.c index 43a20f8c2c43b..17748da7c4d92 100644 --- a/arch/i386/kernel/cpu/mtrr/if.c +++ b/arch/i386/kernel/cpu/mtrr/if.c @@ -1,6 +1,5 @@ #include #include -#include #include #include #include @@ -300,8 +299,6 @@ static struct proc_dir_entry *proc_root_mtrr; # endif /* CONFIG_PROC_FS */ -static devfs_handle_t devfs_handle; - char * attrib_to_str(int x) { return (x <= 6) ? mtrr_strings[x] : "?"; @@ -337,7 +334,6 @@ static int mtrr_seq_show(struct seq_file *seq, void *offset) attrib_to_str(type), usage_table[i]); } } - devfs_set_file_size(devfs_handle, len); return 0; } @@ -350,11 +346,6 @@ static int __init mtrr_if_init(void) proc_root_mtrr->owner = THIS_MODULE; proc_root_mtrr->proc_fops = &mtrr_fops; } -#endif -#ifdef USERSPACE_INTERFACE - devfs_handle = devfs_register(NULL, "cpu/mtrr", DEVFS_FL_DEFAULT, 0, 0, - S_IFREG | S_IRUGO | S_IWUSR, - &mtrr_fops, NULL); #endif return 0; } -- 2.53.0