diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/checkpatch.pl | 6 | ||||
| -rw-r--r-- | scripts/mod/file2alias.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e3bfcbe8a520..a3b9782441f9 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -1924,6 +1924,12 @@ sub process { | |||
| 1924 | my $pre_ctx = "$1$2"; | 1924 | my $pre_ctx = "$1$2"; |
| 1925 | 1925 | ||
| 1926 | my ($level, @ctx) = ctx_statement_level($linenr, $realcnt, 0); | 1926 | my ($level, @ctx) = ctx_statement_level($linenr, $realcnt, 0); |
| 1927 | |||
| 1928 | if ($line =~ /^\+\t{6,}/) { | ||
| 1929 | WARN("DEEP_INDENTATION", | ||
| 1930 | "Too many leading tabs - consider code refactoring\n" . $herecurr); | ||
| 1931 | } | ||
| 1932 | |||
| 1927 | my $ctx_cnt = $realcnt - $#ctx - 1; | 1933 | my $ctx_cnt = $realcnt - $#ctx - 1; |
| 1928 | my $ctx = join("\n", @ctx); | 1934 | my $ctx = join("\n", @ctx); |
| 1929 | 1935 | ||
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index e8c969577768..d0de2a2c3a2d 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
| @@ -932,7 +932,7 @@ static int do_isapnp_entry(const char *filename, | |||
| 932 | (id->function >> 12) & 0x0f, (id->function >> 8) & 0x0f); | 932 | (id->function >> 12) & 0x0f, (id->function >> 8) & 0x0f); |
| 933 | return 1; | 933 | return 1; |
| 934 | } | 934 | } |
| 935 | ADD_TO_DEVTABLE("isa", struct isapnp_device_id, do_isapnp_entry); | 935 | ADD_TO_DEVTABLE("isapnp", struct isapnp_device_id, do_isapnp_entry); |
| 936 | 936 | ||
| 937 | /* | 937 | /* |
| 938 | * Append a match expression for a single masked hex digit. | 938 | * Append a match expression for a single masked hex digit. |
