checkpatch: handle string concatenation in simple #defines
[linux-2.6.git] / scripts / checkpatch.pl
index 95ba30a..01a6598 100755 (executable)
@@ -2894,6 +2894,12 @@ sub process {
                        {
                        }
 
+                       # Flatten any obvious string concatentation.
+                       while ($dstat =~ s/("X*")\s*$Ident/$1/ ||
+                              $dstat =~ s/$Ident\s*("X*")/$1/)
+                       {
+                       }
+
                        my $exceptions = qr{
                                $Declare|
                                module_param_named|