author: Dave Airlie <airlied@redhat.com> 2021-03-16 16:45:12 +1000
committer: Dave Airlie <airlied@redhat.com> 2021-03-16 17:08:46 +1000
commit: 51c3b916a4d7e24b4918925965867fdd9bd8dd59
parent: 1e28eed17697bcf343c6743f0028cc3b5dd88bf0
Commit Summary:
Diffstat:
1 file changed, 4 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index df8b23dc1eb0..73f22fe2d60c 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -6606,9 +6606,11 @@ sub process {
$specifier = $1;
$extension = $2;
$qualifier = $3;
- if ($extension !~ /[SsBKRraEehMmIiUDdgVCbGNOxtf]/ ||
+ if ($extension !~ /[4SsBKRraEehMmIiUDdgVCbGNOxtf]/ ||
($extension eq "f" &&
- defined $qualifier && $qualifier !~ /^w/)) {
+ defined $qualifier && $qualifier !~ /^w/) ||
+ ($extension eq "4" &&
+ defined $qualifier && $qualifier !~ /^cc/)) {
$bad_specifier = $specifier;
last;
}