patch-2.1.56 linux/drivers/char/mem.c

Next file: linux/drivers/char/msbusmouse.c
Previous file: linux/drivers/char/lp_m68k.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.55/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -117,7 +117,7 @@
 	return do_write_mem(file,__va(p),p,buf,count);
 }
 
-static int mmap_mem(struct inode * inode, struct file * file, struct vm_area_struct * vma)
+static int mmap_mem(struct file * file, struct vm_area_struct * vma)
 {
 	unsigned long offset = vma->vm_offset;
 
@@ -330,7 +330,7 @@
 	return written ? written : -EFAULT;
 }
 
-static int mmap_zero(struct inode * inode, struct file * file, struct vm_area_struct * vma)
+static int mmap_zero(struct file * file, struct vm_area_struct * vma)
 {
 	if (vma->vm_flags & VM_SHARED)
 		return -EINVAL;
@@ -350,8 +350,7 @@
  * both devices with "a" now.  This was previously impossible.  SRB.
  */
 
-static long long null_lseek(struct inode * inode, struct file * file,
-	long long offset, int orig)
+static long long null_lseek(struct file * file, long long offset, int orig)
 {
 	return file->f_pos=0;
 }
@@ -363,8 +362,7 @@
  * also note that seeking relative to the "end of file" isn't supported:
  * it has no meaning, so it returns -EINVAL.
  */
-static long long memory_lseek(struct inode * inode, struct file * file,
-	long long offset, int orig)
+static long long memory_lseek(struct file * file, long long offset, int orig)
 {
 	switch (orig) {
 		case 0:

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