From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754799AbYGNC6F (ORCPT ); Sun, 13 Jul 2008 22:58:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755954AbYGNC5o (ORCPT ); Sun, 13 Jul 2008 22:57:44 -0400 Received: from rv-out-0506.google.com ([209.85.198.232]:19719 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755521AbYGNC5m (ORCPT ); Sun, 13 Jul 2008 22:57:42 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:references:user-agent:date:from:to:cc:subject :content-disposition; b=PlfirKWmB1VBvoB97zBs2ej7NLtw/BE9M9tWbNlQZGjLjwtTZKBhIxwTprTCSPSzlF pkaquE4nsrrWhyKOlz6ZhvA30fN4QsLqLIgRCbQhCcK556QikyH2LM0UC3dmBud5nUeu /sz9kMP2FPCweLITgdXzi9oGpu/TBbaj/yuSs= Message-Id: <20080714025737.954072047@gmail.com> References: <20080714025631.338886297@gmail.com> User-Agent: quilt/0.46-1 Date: Mon, 14 Jul 2008 11:56:32 +0900 From: Akinobu Mita To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Cc: James Bottomley , Geert Uytterhoeven , Zhang Rui , Bob Moore , Thomas Renninger , Len Brown , Martin Schwidefsky , Heiko Carstens , linux390@de.ibm.com, linux-s390@vger.kernel.org Subject: [patch -mmotm 1/6] move memory_read_from_buffer() from fs.h to string.h Content-Disposition: inline; filename=move-memory-read-from-buffer-into-string-h.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 remove inclusion of linux/fs.h in existing memory_read_from_buffer() user. Signed-off-by: Akinobu Mita Cc: James Bottomley Cc: Geert Uytterhoeven Cc: Zhang Rui Cc: Bob Moore Cc: Thomas Renninger Cc: Len Brown Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org --- arch/s390/kernel/ipl.c | 1 - drivers/zorro/zorro-sysfs.c | 1 - include/linux/fs.h | 2 -- include/linux/string.h | 3 +++ 4 files changed, 3 insertions(+), 4 deletions(-) Index: 2.6-mmotm/include/linux/fs.h =================================================================== --- 2.6-mmotm.orig/include/linux/fs.h +++ 2.6-mmotm/include/linux/fs.h @@ -2028,8 +2028,6 @@ extern void simple_release_fs(struct vfs extern ssize_t simple_read_from_buffer(void __user *to, size_t count, loff_t *ppos, const void *from, size_t available); -extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, - const void *from, size_t available); #ifdef CONFIG_MIGRATION extern int buffer_migrate_page(struct address_space *, Index: 2.6-mmotm/include/linux/string.h =================================================================== --- 2.6-mmotm.orig/include/linux/string.h +++ 2.6-mmotm/include/linux/string.h @@ -111,5 +111,8 @@ extern void argv_free(char **argv); extern bool sysfs_streq(const char *s1, const char *s2); +extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, + const void *from, size_t available); + #endif #endif /* _LINUX_STRING_H_ */ Index: 2.6-mmotm/drivers/zorro/zorro-sysfs.c =================================================================== --- 2.6-mmotm.orig/drivers/zorro/zorro-sysfs.c +++ 2.6-mmotm/drivers/zorro/zorro-sysfs.c @@ -15,7 +15,6 @@ #include #include #include -#include #include "zorro.h" Index: 2.6-mmotm/arch/s390/kernel/ipl.c =================================================================== --- 2.6-mmotm.orig/arch/s390/kernel/ipl.c +++ 2.6-mmotm/arch/s390/kernel/ipl.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include --