Commit e108526e77aa41c89b3be96f75d97615db2b751c
Committed by
Linus Torvalds
1 parent
338b9bb3ad
Exists in
master
and in
4 other branches
move memory_read_from_buffer() from fs.h to string.h
James Bottomley warns that inclusion of linux/fs.h in a low level driver was always a danger signal. This patch moves memory_read_from_buffer() from fs.h to string.h and fixes includes in existing memory_read_from_buffer() users. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: James Bottomley <James.Bottomley@hansenpartnership.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Zhang Rui <rui.zhang@intel.com> Cc: Bob Moore <robert.moore@intel.com> Cc: Thomas Renninger <trenn@suse.de> Cc: Len Brown <lenb@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 4 changed files with 4 additions and 3 deletions Side-by-side Diff
drivers/acpi/system.c
drivers/zorro/zorro-sysfs.c
include/linux/fs.h
... | ... | @@ -2006,8 +2006,6 @@ |
2006 | 2006 | |
2007 | 2007 | extern ssize_t simple_read_from_buffer(void __user *to, size_t count, |
2008 | 2008 | loff_t *ppos, const void *from, size_t available); |
2009 | -extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, | |
2010 | - const void *from, size_t available); | |
2011 | 2009 | |
2012 | 2010 | #ifdef CONFIG_MIGRATION |
2013 | 2011 | extern int buffer_migrate_page(struct address_space *, |
include/linux/string.h