|
@@ -2226,8 +2226,11 @@ sub process {
|
|
my $path = $1;
|
|
my $path = $1;
|
|
if ($path =~ m{//}) {
|
|
if ($path =~ m{//}) {
|
|
ERROR("MALFORMED_INCLUDE",
|
|
ERROR("MALFORMED_INCLUDE",
|
|
- "malformed #include filename\n" .
|
|
|
|
- $herecurr);
|
|
|
|
|
|
+ "malformed #include filename\n" . $herecurr);
|
|
|
|
+ }
|
|
|
|
+ if ($path =~ "^uapi/" && $realfile =~ m@\binclude/uapi/@) {
|
|
|
|
+ ERROR("UAPI_INCLUDE",
|
|
|
|
+ "No #include in ...include/uapi/... should use a uapi/ path prefix\n" . $herecurr);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|