patch-2.1.97 linux/fs/proc/root.c

Next file: linux/include/asm-alpha/irq.h
Previous file: linux/fs/proc/proc_devtree.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -177,14 +177,14 @@
 
 #if defined(CONFIG_SUN_OPENPROMFS) || defined(CONFIG_SUN_OPENPROMFS_MODULE)
 
-static int (*proc_openprom_defreaddir_ptr)(struct inode *, struct file *, void *, filldir_t);
+static int (*proc_openprom_defreaddir_ptr)(struct file *, void *, filldir_t);
 static int (*proc_openprom_deflookup_ptr)(struct inode *, struct dentry *);
 void (*proc_openprom_use)(struct inode *, int) = 0;
 static struct openpromfs_dev *proc_openprom_devices = NULL;
 static ino_t proc_openpromdev_ino = PROC_OPENPROMD_FIRST;
 
 struct inode_operations *
-proc_openprom_register(int (*readdir)(struct inode *, struct file *, void *, filldir_t),
+proc_openprom_register(int (*readdir)(struct file *, void *, filldir_t),
 		       int (*lookup)(struct inode *, struct dentry *),
 		       void (*use)(struct inode *, int),
 		       struct openpromfs_dev ***devices)
@@ -236,14 +236,13 @@
 
 #if defined(CONFIG_SUN_OPENPROMFS_MODULE) && defined(CONFIG_KMOD)
 static int 
-proc_openprom_defreaddir(struct inode * inode, struct file * filp,
-			 void * dirent, filldir_t filldir)
+proc_openprom_defreaddir(struct file * filp, void * dirent, filldir_t filldir)
 {
 	request_module("openpromfs");
 	if ((proc_openprom_inode_operations.default_file_ops)->readdir !=
 	    proc_openprom_defreaddir)
 		return (proc_openprom_inode_operations.default_file_ops)->readdir 
-				(inode, filp, dirent, filldir);
+				(filp, dirent, filldir);
 	return -EINVAL;
 }
 #define OPENPROM_DEFREADDIR proc_openprom_defreaddir

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov