Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cec3aaa5 authored by Tomas Winkler's avatar Tomas Winkler Committed by Linus Torvalds
Browse files

checkpatch: don't complain about BIT macro in uapi

parent aab38f51
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5732,8 +5732,9 @@ sub process {
			}
		}

# check for #defines like: 1 << <digit> that could be BIT(digit)
		if ($line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
# check for #defines like: 1 << <digit> that could be BIT(digit), it is not exported to uapi
		if ($realfile !~ m@^include/uapi/@ &&
		    $line =~ /#\s*define\s+\w+\s+\(?\s*1\s*([ulUL]*)\s*\<\<\s*(?:\d+|$Ident)\s*\)?/) {
			my $ull = "";
			$ull = "_ULL" if (defined($1) && $1 =~ /ll/i);
			if (CHK("BIT_MACRO",