Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mm: make vread() and vwrite() declaration

Sparse output following warnings.

mm/vmalloc.c:1436:6: warning: symbol 'vread' was not declared. Should it be static?
mm/vmalloc.c:1474:6: warning: symbol 'vwrite' was not declared. Should it be static?

However, it is used by /dev/kmem. fixed here.

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

KOSAKI Motohiro and committed by
Linus Torvalds
69beeb1d efab8186

+4 -3
-3
drivers/char/mem.c
··· 425 425 } 426 426 #endif 427 427 428 - extern long vread(char *buf, char *addr, unsigned long count); 429 - extern long vwrite(char *buf, char *addr, unsigned long count); 430 - 431 428 #ifdef CONFIG_DEVKMEM 432 429 /* 433 430 * This function reads the *virtual* memory as seen by the kernel.
+4
include/linux/vmalloc.h
··· 97 97 extern struct vm_struct *alloc_vm_area(size_t size); 98 98 extern void free_vm_area(struct vm_struct *area); 99 99 100 + /* for /dev/kmem */ 101 + extern long vread(char *buf, char *addr, unsigned long count); 102 + extern long vwrite(char *buf, char *addr, unsigned long count); 103 + 100 104 /* 101 105 * Internals. Dont't use.. 102 106 */