]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: fix false positive MISSING_BREAK warnings with --file
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:11:25 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:29 +0000 (18:01 -0700)
commit8621b89e8689b8a661ad83a9dda09795c60e2bc9
treee031acf2105cba2579c89556e80c0143a54b75f0
parent31fbc7a29f2e58ee341b15db4b7c3022a136b7cc
checkpatch: fix false positive MISSING_BREAK warnings with --file

Using --file mode can give false positives with MISSING_BREAK
fall-through warnings on simple but long multiple consecutive case
statements.

Look for all lines before a case statement for a switch or a statement
when using --file mode.

Fix a misspelling of preceded while there.

Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl