|
@@ -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 = "";
|
|
my $ull = "";
|
|
$ull = "_ULL" if (defined($1) && $1 =~ /ll/i);
|
|
$ull = "_ULL" if (defined($1) && $1 =~ /ll/i);
|
|
if (CHK("BIT_MACRO",
|
|
if (CHK("BIT_MACRO",
|