virtio-pci: fix proxy->vector_irqfd leak in virtio_pci_set_guest_notifiers
[qemu.git] / scripts / checkpatch.pl
index e3e3b4307608cda87ae23371c9b829db4e7ce285..6ecabfb2b52019428e3a83a67bbafe2c841cb769 100755 (executable)
@@ -1681,8 +1681,10 @@ sub process {
 # Block comment styles
 
                # Block comments use /* on a line of its own
-               if ($rawline !~ m@^\+.*/\*.*\*/[ \t)}]*$@ &&    #inline /*...*/
-                   $rawline =~ m@^\+.*/\*\*?+[ \t]*[^ \t]@) { # /* or /** non-blank
+               my $commentline = $rawline;
+               while ($commentline =~ s@^(\+.*)/\*.*\*/@$1@o) { # remove inline /*...*/
+               }
+               if ($commentline =~ m@^\+.*/\*\*?+[ \t]*[^ \t]@) { # /* or /** non-blank
                        WARN("Block comments use a leading /* on a separate line\n" . $herecurr);
                }
 
This page took 0.030696 seconds and 4 git commands to generate.