From e0441948441aa9df195dc06851d144fc7f207d1b Mon Sep 17 00:00:00 2001 From: Janusz Jankowski Date: Mon, 4 Nov 2019 13:48:31 +0100 Subject: [PATCH] checkpatch: disable short fixed size types for SOF Do not check for u/s* vs u/sint*_t in SOF, because there is only the longer variant. Signed-off-by: Janusz Jankowski --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 44eec47f4..b9cf8f701 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5952,7 +5952,8 @@ sub process { } # check for c99 types like uint8_t used outside of uapi/ and tools/ - if ($realfile !~ m@\binclude/uapi/@ && + if (!$SOF && + $realfile !~ m@\binclude/uapi/@ && $realfile !~ m@\btools/@ && $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) { my $type = $1;