aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/android/binder_alloc_selftest.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2019-02-12 21:31:26 +0000
committerGreg Kroah-Hartman <[email protected]>2019-02-13 18:45:57 +0000
commitca5dc2d11787d72dd11f5af77ef07a93a293bea6 (patch)
tree5cecf91a4d59fe0afa5279c25028d3f9451fcec8 /drivers/android/binder_alloc_selftest.c
parentparport: daisy: use new parport device model (diff)
downloadkernel-ca5dc2d11787d72dd11f5af77ef07a93a293bea6.tar.gz
kernel-ca5dc2d11787d72dd11f5af77ef07a93a293bea6.zip
char: lp: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. This patch fixes the following warnings: drivers/char/lp.c: In function ‘lp_compat_ioctl’: drivers/char/lp.c:756:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (!COMPAT_USE_64BIT_TIME) { ^ drivers/char/lp.c:761:2: note: here case LPSETTIMEOUT_NEW: ^~~~ drivers/char/lp.c: In function ‘lp_ioctl’: drivers/char/lp.c:728:6: warning: this statement may fall through [-Wimplicit-fallthrough=] if (BITS_PER_LONG == 32) { ^ drivers/char/lp.c:733:2: note: here case LPSETTIMEOUT_NEW: ^~~~ Warning level 3 was used: -Wimplicit-fallthrough=3 Notice that in some cases, the code comment is modified in accordance with what GCC is expecting to find. This patch is part of the ongoing efforts to enable -Wimplicit-fallthrough. Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/android/binder_alloc_selftest.c')
0 files changed, 0 insertions, 0 deletions