lkml.org 
[lkml]   [2012]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3.5.0-rc2] checkpatch:Fix un-necessary whitespace warning.
Date
From: Srinivas Kandagatla <srinivas.kandagatla@st.com>

This patch fixes "check spaces before a quoted newline" to consider
only new lines added in the patch, rather than checking all the lines in
the patch.

Without this patch the "check spaces before a quoted newline" will check
all the lines in the patch and throw un-nessary warnings.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
---
scripts/checkpatch.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e5bd60f..6fdd2a3 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1788,7 +1788,7 @@ sub process {
}

# check for spaces before a quoted newline
- if ($rawline =~ /^.*\".*\s\\n/) {
+ if ($rawline =~ /^\+.*\".*\s\\n/) {
WARN("QUOTED_WHITESPACE_BEFORE_NEWLINE",
"unnecessary whitespace before a quoted newline\n" . $herecurr);
}
--
1.7.0.4


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