checkpatch: extend attribute testing to all modifiers

We should allow testing of all modifiers not just attributes.  Extend
testing and test for all the know modifiers.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Andy Whitcroft 2009-02-27 14:03:08 -08:00 коммит произвёл Linus Torvalds
Родитель 667026e7b0
Коммит 9360b0e50e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1584,9 +1584,9 @@ sub process {
} }
# TEST: allow direct testing of the attribute matcher. # TEST: allow direct testing of the attribute matcher.
if ($dbg_attr) { if ($dbg_attr) {
if ($line =~ /^.\s*$Attribute\s*$/) { if ($line =~ /^.\s*$Modifier\s*$/) {
ERROR("TEST: is attr\n" . $herecurr); ERROR("TEST: is attr\n" . $herecurr);
} elsif ($dbg_attr > 1 && $line =~ /^.+($Attribute)/) { } elsif ($dbg_attr > 1 && $line =~ /^.+($Modifier)/) {
ERROR("TEST: is not attr ($1 is)\n". $herecurr); ERROR("TEST: is not attr ($1 is)\n". $herecurr);
} }
next; next;