]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add test for consecutive string fragments
authorJoe Perches <joe@perches.com>
Wed, 10 Dec 2014 23:51:59 +0000 (15:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:12 +0000 (17:41 -0800)
commitbb5519097b3b64f5b09737398697ad19a045b044
treed656578867675998a058c62fee5436c2de4851f1
parentbc1c7ca82d651325c60496223169dbf92bae4719
checkpatch: add test for consecutive string fragments

Emit a warning when single line string coalescing occurs.

Code that uses compiler string concatenation on a single line like:

    printk("foo" "bar");

is generally better to read concatenated like:

    printk("foobar");

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl