lkml.org 
[lkml]   [2012]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH RFC -next] Fix the trailing blank space issue
On Thu, Dec 06, 2012 at 05:08:56PM +0800, Bin Wang wrote:
> This patch removes the trailing white space in fs/sysfs/mount.c.
>
> Signed-off-by: Bin Wang <wbin00@gmail.com>
> ---
> fs/sysfs/mount.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Hi Greg,

I am not sure it is really necessary to remove all the trailing blank spaces
in the project. I have done a try by this shell command
$ find . -iname '*.[ch]' | xargs sed 's/\s\+$//g' -i
and find there are 2812 files/31712 lines with this issue.

If necessary, I think it's better to run this shell code by yourself in the
whole linux-next tree and commit it. Nevertheless, the patch file of my try is
available from gist: https://gist.github.com/4225286

Even the diff summary is very large, hence I attach a simple version diff
result and commit information here.

- cong

---
From 30ed9bb0e6f7c8866447d27c86f466c44749116e Mon Sep 17 00:00:00 2001
From: Cong Ding <dinggnu@gmail.com>
Date: Thu, 6 Dec 2012 15:58:15 +0100
Subject: [PATCH RFC -next] remove all the trailing blank space

clean all the trailing blank space by using shell command
$ find . -iname '*.[ch]' | xargs sed 's/\s\+$//g' -i

I have manually checked a random set of all the changes, and find no error.
I also compiled the whole system and tested many times by randconfig.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
---
2812 files changed, 31712 insertions(+), 31712 deletions(-)


\
 
 \ /
  Last update: 2012-12-06 19:02    [W:0.069 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site