diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2017-06-21 18:40:11 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-21 19:46:07 +0200 |
commit | e29387ebd86e903702422a8361fd3e03aca25573 (patch) | |
tree | a47ec01680c8f05dd74e5fb37c3686811d286b3e /block/badblocks.c | |
parent | btrfs: use new block error code (diff) | |
download | linux-e29387ebd86e903702422a8361fd3e03aca25573.tar.xz linux-e29387ebd86e903702422a8361fd3e03aca25573.zip |
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/badblocks.c')
-rw-r--r-- | block/badblocks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/badblocks.c b/block/badblocks.c index 6ebcef282314..43c71166e1e2 100644 --- a/block/badblocks.c +++ b/block/badblocks.c @@ -533,6 +533,7 @@ ssize_t badblocks_store(struct badblocks *bb, const char *page, size_t len, case 3: if (newline != '\n') return -EINVAL; + /* fall through */ case 2: if (length <= 0) return -EINVAL; |