Skip to contentSkip to conversation

proper prototypes for vread/vwrite

PATCH New Adrian Bunk 1 participant 1 message Feb 25, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proper prototypes for vread/vwrite

This patch adds proper prototypes for vread/vwrite in include/linux/vmalloc.h

---

 drivers/char/mem.c      |    3 ---
 include/linux/vmalloc.h |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

ce4fe62358ed9369d3ff4e67d621164b381234ab diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 20070b7..da6319f 100644

drivers/char/mem.c +0 -3
@@ -350,9 +350,6 @@ static ssize_t read_oldmem(struct file *file, char __user *buf,
 }
 #endif
 
-extern long vread(char *buf, char *addr, unsigned long count);
-extern long vwrite(char *buf, char *addr, unsigned long count);
-
 /*
  * This function reads the *virtual* memory as seen by the kernel.
  */
include/linux/vmalloc.h +3 -0
index ce8e7da..7bdd809 100644
@@ -55,6 +55,9 @@ extern int remap_vmalloc_range(struct vm_area_struct *vma, void *addr,
 							unsigned long pgoff);
 void vmalloc_sync_all(void);
  
+long vread(char *buf, char *addr, unsigned long count);
+long vwrite(char *buf, char *addr, unsigned long count);
+
 /*
  *	Lowlevel-APIs (not for driver use!)
  */