checkpatch: add --fix for CONCATENATED_STRING and STRING_FRAGMENTS
authorJoe Perches <joe@perches.com>
Wed, 22 Aug 2018 04:57:29 +0000 (21:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Aug 2018 17:52:48 +0000 (10:52 -0700)
commit79682c0c00893c683678d85a402392b75e90311d
treea876d2f790da19e013a4099751d850ff13431669
parentd729593e492e1e4c7cd8a418ee227d0bd4d5f36d
checkpatch: add --fix for CONCATENATED_STRING and STRING_FRAGMENTS

Add the ability to --fix these string issues.

e.g.:
printk(KERN_INFO"bar" "baz"QUX);
converts to
printk(KERN_INFO "barbaz" QUX);

Link: http://lkml.kernel.org/r/a9fb505ccfedffc5869d08832a7ff05a21d85621.camel@perches.com
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