Skip to content

Commit db5358b

Browse files
committed
Suppress UNCOMMENTED_DEFINITION check for disabled_XXX and exhausted_XXX
We name function stubs this way.
1 parent 4664034 commit db5358b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

checkpatch.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4655,8 +4655,8 @@ sub process {
46554655
# ignore tests
46564656
} elsif ($realfile =~ /\bbox\.h$/ && $line =~ /^\+\s*(?:$Declare)?\s*box_set_/) {
46574657
# ignore box_set_XXX in box.h
4658-
} elsif ($line =~ /^\+\s*(?:$Declare)?\s*generic_/) {
4659-
# generic_XXX functions are stubs so comments are not required
4658+
} elsif ($line =~ /^\+\s*(?:$Declare)?\s*(?:generic_|disabled_|exhausted_)/) {
4659+
# generic_XXX, disabled_XXX, exhausted_XXX are functions are stubs so comments are not required
46604660
} elsif ($line =~ /^\+\s*($Declare)?\s*(?:($Ident)\s*\(|\(\s*\*\s*($Ident)\s*\)\s*\(|($Ident)\s*;)/) {
46614661
# function, function pointer, variable / struct member
46624662
my $decl = $1;

0 commit comments

Comments
 (0)