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  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]
Date:	Mon, 01 Sep 2014 10:33:02 -0700
From:	Joe Perches <>
To:	Andrew Morton <>
Cc:	Andy Whitcroft <>,
	LKML <>,
	Dan Carpenter <>
Subject: [PATCH] checkpatch: Add --strict test for concatenated string

Using a space between concatenated string elements is
easier for a human to read.


is easier to read as:

	"String" FOO "bar"

So suggest this style with a --strict command line option.

Signed-off-by: Joe Perches <>
 scripts/ | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/ b/scripts/
index d89857d..48a2d8c 100755
--- a/scripts/
+++ b/scripts/
@@ -4335,6 +4335,12 @@ sub process {
 			     "Use of volatile is usually wrong: see Documentation/volatile-considered-harmful.txt\n" . $herecurr);
+# concatenated string without spaces between elements
+		if ($line =~ /"X+"[A-Z_]+/ || $line =~ /[A-Z_]+"X+"/) {
+			    "Concatenated strings should use spaces between elements\n" . $herecurr);
+		}
 # warn about #if 0
 		if ($line =~ /^.\s*\#\s*if\s+0\b/) {

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists