summaryrefslogtreecommitdiffstats
path: root/block/ioprio.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2017-06-21 09:40:11 -0700
committerJens Axboe <axboe@kernel.dk>2017-06-21 11:46:07 -0600
commite29387ebd86e903702422a8361fd3e03aca25573 (patch)
treea47ec01680c8f05dd74e5fb37c3686811d286b3e /block/ioprio.c
parent0e9350de2ecdf22f003107d3d21db59e17c521ad (diff)
downloadlinux-0-day-e29387ebd86e903702422a8361fd3e03aca25573.tar.gz
linux-0-day-e29387ebd86e903702422a8361fd3e03aca25573.tar.xz
block: Add fallthrough markers to switch statements
This patch suppresses gcc 7 warnings about falling through in switch statements when building with W=1. From the gcc documentation: The -Wimplicit-fallthrough=3 warning is enabled by -Wextra. See also https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/Warning-Options.html. Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/ioprio.c')
-rw-r--r--block/ioprio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/ioprio.c b/block/ioprio.c
index 4b120c9cf7e8b..6f5d0b6625e39 100644
--- a/block/ioprio.c
+++ b/block/ioprio.c
@@ -75,7 +75,8 @@ SYSCALL_DEFINE3(ioprio_set, int, which, int, who, int, ioprio)
case IOPRIO_CLASS_RT:
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
- /* fall through, rt has prio field too */
+ /* fall through */
+ /* rt has prio field too */
case IOPRIO_CLASS_BE:
if (data >= IOPRIO_BE_NR || data < 0)
return -EINVAL;