]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commite81f239b4db2ad6c4b029ed92f0222601ce42abe
treee031acf2105cba2579c89556e80c0143a54b75f0
parent1813087dbc54ff1485bcc84b66d34052eaf23387
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