]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: more comprehensive split strings warning
authorJoe Perches <joe@perches.com>
Fri, 3 Jan 2014 03:10:16 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:16 +0000 (14:10 +1100)
commitbeac6b1331f765a7f4229ee4307bf3552f0d2e96
tree2115772d6285f2dc2ed3b65f3b54386e74bd656c
parenta0bfaf7220c5f7f3fbba4f62e0ad289874a35b4e
checkpatch: more comprehensive split strings warning

The current checkpatch test for split strings does not find several cases
that should be found.

For instance:

  /* Else poor success; go back to mode in "active" table */
  } else {
  IWL_DEBUG_RATE(mvm,
-        "LQ: GOING BACK TO THE OLD TABLE suc=%d cur-tpt=%d old-tpt=%d\n",
+        "GOING BACK TO THE OLD TABLE: SR %d "
+        "cur-tpt %d old-tpt %d\n",
         window->success_ratio,
         window->average_tpt,
        lq_sta->last_tpt);

does not currently emit a warning.

Improve the test to find these cases.

Add more exceptions to reduce false positives for assembly and octal/hex
string constants.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl