xen/console: Update console event channel on resume
[firefly-linux-kernel-4.4.55.git] / scripts / checkpatch.pl
index 35aecb3b013c8ae27f4c4cd7dbd7e2af35dc542f..89b1df4e72ab3423bce45011fb03f86c193f5ad4 100755 (executable)
@@ -3845,6 +3845,14 @@ sub process {
                                                $ok = 1;
                                        }
 
+                                       # for asm volatile statements
+                                       # ignore a colon with another
+                                       # colon immediately before or after
+                                       if (($op eq ':') &&
+                                           ($ca =~ /:$/ || $cc =~ /^:/)) {
+                                               $ok = 1;
+                                       }
+
                                        # messages are ERROR, but ?: are CHK
                                        if ($ok == 0) {
                                                my $msg_type = \&ERROR;