aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/scripts/cstyle.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/openzfs/scripts/cstyle.pl')
-rwxr-xr-xsys/contrib/openzfs/scripts/cstyle.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/contrib/openzfs/scripts/cstyle.pl b/sys/contrib/openzfs/scripts/cstyle.pl
index d19718ecf443..d4563cdc9f1a 100755
--- a/sys/contrib/openzfs/scripts/cstyle.pl
+++ b/sys/contrib/openzfs/scripts/cstyle.pl
@@ -140,7 +140,7 @@ my %old2posix = (
);
my $lint_re = qr/\/\*(?:
- ARGSUSED[0-9]*|NOTREACHED|LINTLIBRARY|VARARGS[0-9]*|
+ NOTREACHED|LINTLIBRARY|VARARGS[0-9]*|
CONSTCOND|CONSTANTCOND|CONSTANTCONDITION|EMPTY|
FALLTHRU|FALLTHROUGH|LINTED.*?|PRINTFLIKE[0-9]*|
PROTOLIB[0-9]*|SCANFLIKE[0-9]*|CSTYLED.*?
@@ -385,6 +385,9 @@ line: while (<$filehandle>) {
if (/[^ \t(]\/\*/ && !/\w\(\/\*.*\*\/\);/) {
err("comment preceded by non-blank");
}
+ if (/ARGSUSED/) {
+ err("ARGSUSED directive");
+ }
# is this the beginning or ending of a function?
# (not if "struct foo\n{\n")