[Sound-open-firmware] [PATCH] scripts: checkpatch: don't complain about int_t uint_t types

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Apr 4 16:54:50 CEST 2018


Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 scripts/checkpatch.pl | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3fb44787..16d035ec 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5657,25 +5657,6 @@ sub process {
 			      "Using weak declarations can have unintended link defects\n" . $herecurr);
 		}
 
-# check for c99 types like uint8_t used outside of uapi/ and tools/
-		if ($realfile !~ m@\binclude/uapi/@ &&
-		    $realfile !~ m@\btools/@ &&
-		    $line =~ /\b($Declare)\s*$Ident\s*[=;,\[]/) {
-			my $type = $1;
-			if ($type =~ /\b($typeC99Typedefs)\b/) {
-				$type = $1;
-				my $kernel_type = 'u';
-				$kernel_type = 's' if ($type =~ /^_*[si]/);
-				$type =~ /(\d+)/;
-				$kernel_type .= $1;
-				if (CHK("PREFER_KERNEL_TYPES",
-					"Prefer kernel type '$kernel_type' over '$type'\n" . $herecurr) &&
-				    $fix) {
-					$fixed[$fixlinenr] =~ s/\b$type\b/$kernel_type/;
-				}
-			}
-		}
-
 # check for cast of C90 native int or longer types constants
 		if ($line =~ /(\(\s*$C90_int_types\s*\)\s*)($Constant)\b/) {
 			my $cast = $1;
-- 
2.14.1



More information about the Sound-open-firmware mailing list