lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1339661791-18185-1-git-send-email-srinivas.kandagatla@st.com>
Date:	Thu, 14 Jun 2012 09:16:31 +0100
From:	Srinivas KANDAGATLA <srinivas.kandagatla@...com>
To:	apw@...onical.com
Cc:	srinivas.kandagatla@...com, linux-kernel@...r.kernel.org
Subject: [PATCH 3.5.0-rc2] checkpatch:Fix un-necessary whitespace warning.

From: Srinivas Kandagatla <srinivas.kandagatla@...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@...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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ