summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2012-12-18 01:02:01 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-18 02:15:19 +0100
commitd1e2ad07e78c4bbac9fce4d2e3c0fe60bce091d8 (patch)
tree41193684d79788aef5d00c817ba570c27c7de02f /kernel
parentcheckpatch: warn when declaring "struct spinlock foo;" (diff)
downloadlinux-d1e2ad07e78c4bbac9fce4d2e3c0fe60bce091d8.tar.xz
linux-d1e2ad07e78c4bbac9fce4d2e3c0fe60bce091d8.zip
checkpatch: add --strict test for switch/default missing break
switch default case is sometimes written as "default:;". This can cause new cases added below the default to be defective. Suggest adding a break; after empty default cases to avoid fallthrough defects. Fixed indentation in the other semicolon test above it. Suggested-by: Peter Senna Tschudin <peter.senna@gmail.com> Signed-off-by: Joe Perches <joe@perches.com> Cc: Andy Whitcroft <apw@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions