Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

checkpatch: trivial style fixes

Indentations should use tabs wherever possible.
Replace spaces by tabs for indents.

Link: https://lkml.kernel.org/r/20210105103044.40282-1-dwaipayanray1@gmail.com
Signed-off-by: Dwaipayan Ray <dwaipayanray1@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Dwaipayan Ray and committed by
Linus Torvalds
ea7dbab3 35cdcbfc

+9 -9
+9 -9
scripts/checkpatch.pl
··· 2974 2974 } 2975 2975 if (!defined $lines[$linenr]) { 2976 2976 WARN("BAD_SIGN_OFF", 2977 - "Co-developed-by: must be immediately followed by Signed-off-by:\n" . "$here\n" . $rawline); 2977 + "Co-developed-by: must be immediately followed by Signed-off-by:\n" . "$here\n" . $rawline); 2978 2978 } elsif ($rawlines[$linenr] !~ /^\s*signed-off-by:\s*(.*)/i) { 2979 2979 WARN("BAD_SIGN_OFF", 2980 2980 "Co-developed-by: must be immediately followed by Signed-off-by:\n" . "$here\n" . $rawline . "\n" .$rawlines[$linenr]); ··· 2997 2997 if (ERROR("GERRIT_CHANGE_ID", 2998 2998 "Remove Gerrit Change-Id's before submitting upstream\n" . $herecurr) && 2999 2999 $fix) { 3000 - fix_delete_line($fixlinenr, $rawline); 3001 - } 3000 + fix_delete_line($fixlinenr, $rawline); 3001 + } 3002 3002 } 3003 3003 3004 3004 # Check if the commit log is in a possible stack dump ··· 3240 3240 next if ($start_char =~ /^\S$/); 3241 3241 next if (index(" \t.,;?!", $end_char) == -1); 3242 3242 3243 - # avoid repeating hex occurrences like 'ff ff fe 09 ...' 3244 - if ($first =~ /\b[0-9a-f]{2,}\b/i) { 3245 - next if (!exists($allow_repeated_words{lc($first)})); 3246 - } 3243 + # avoid repeating hex occurrences like 'ff ff fe 09 ...' 3244 + if ($first =~ /\b[0-9a-f]{2,}\b/i) { 3245 + next if (!exists($allow_repeated_words{lc($first)})); 3246 + } 3247 3247 3248 3248 if (WARN("REPEATED_WORD", 3249 3249 "Possible repeated word: '$first'\n" . $herecurr) && ··· 4423 4423 WARN("STATIC_CONST_CHAR_ARRAY", 4424 4424 "char * array declaration might be better as static const\n" . 4425 4425 $herecurr); 4426 - } 4426 + } 4427 4427 4428 4428 # check for sizeof(foo)/sizeof(foo[0]) that could be ARRAY_SIZE(foo) 4429 4429 if ($line =~ m@\bsizeof\s*\(\s*($Lval)\s*\)@) { ··· 5276 5276 $lines[$linenr - 3] !~ /^[ +]\s*$Ident\s*:/) { 5277 5277 WARN("RETURN_VOID", 5278 5278 "void function return statements are not generally useful\n" . $hereprev); 5279 - } 5279 + } 5280 5280 5281 5281 # if statements using unnecessary parentheses - ie: if ((foo == bar)) 5282 5282 if ($perl_version_ok &&