diff options
| author | Wim Van Sebroeck <wim@iguana.be> | 2007-05-11 19:03:13 +0000 | 
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2007-05-11 19:03:13 +0000 | 
| commit | 5c34202b8bf942da411b6599668a76b07449bbfd (patch) | |
| tree | 5719c361321eaddc8e4f1b0c8a7994f0e9a6fdd3 /fs/proc/proc_misc.c | |
| parent | 0d4804b31f91cfbcff6d62af0bc09a893a1c8ae0 (diff) | |
| parent | 1f8a6b658a943b4f04a1fc7b3a420360202c86cd (diff) | |
Merge /pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'fs/proc/proc_misc.c')
| -rw-r--r-- | fs/proc/proc_misc.c | 12 | 
1 files changed, 1 insertions, 11 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index e2c4c0a5c90..5fd49e47f83 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -35,7 +35,6 @@  #include <linux/signal.h>  #include <linux/module.h>  #include <linux/init.h> -#include <linux/smp_lock.h>  #include <linux/seq_file.h>  #include <linux/times.h>  #include <linux/profile.h> @@ -398,8 +397,6 @@ static const struct file_operations proc_modules_operations = {  #endif  #ifdef CONFIG_SLAB -extern struct seq_operations slabinfo_op; -extern ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);  static int slabinfo_open(struct inode *inode, struct file *file)  {  	return seq_open(file, &slabinfo_op); @@ -431,18 +428,11 @@ static int slabstats_open(struct inode *inode, struct file *file)  	return ret;  } -static int slabstats_release(struct inode *inode, struct file *file) -{ -	struct seq_file *m = file->private_data; -	kfree(m->private); -	return seq_release(inode, file); -} -  static const struct file_operations proc_slabstats_operations = {  	.open		= slabstats_open,  	.read		= seq_read,  	.llseek		= seq_lseek, -	.release	= slabstats_release, +	.release	= seq_release_private,  };  #endif  #endif  | 
