aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/cstyle.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/cstyle.pl b/scripts/cstyle.pl
index d19718ecf..d4563cdc9 100755
--- a/scripts/cstyle.pl
+++ b/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")