diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 1d6e4c54137..4d2c7dfdaab 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -2226,8 +2226,11 @@ sub process { | |||
| 2226 | my $path = $1; | 2226 | my $path = $1; |
| 2227 | if ($path =~ m{//}) { | 2227 | if ($path =~ m{//}) { |
| 2228 | ERROR("MALFORMED_INCLUDE", | 2228 | ERROR("MALFORMED_INCLUDE", |
| 2229 | "malformed #include filename\n" . | 2229 | "malformed #include filename\n" . $herecurr); |
| 2230 | $herecurr); | 2230 | } |
| 2231 | if ($path =~ "^uapi/" && $realfile =~ m@\binclude/uapi/@) { | ||
| 2232 | ERROR("UAPI_INCLUDE", | ||
| 2233 | "No #include in ...include/uapi/... should use a uapi/ path prefix\n" . $herecurr); | ||
| 2231 | } | 2234 | } |
| 2232 | } | 2235 | } |
| 2233 | 2236 | ||
