blkcg: annotate implicit fall through
Subsystems (2)
PATCH 1/1 blkcg: annotate implicit fall through
There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1).
This commit remove the following warning:
kernel/trace/blktrace.c:725:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
--- kernel/trace/blktrace.c | 1 + 1 file changed, 1 insertion(+)
kernel/trace/blktrace.c +1 -0
@@ -723,6 +723,7 @@ int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg)#endif case BLKTRACESTART : start =1 ; +/* fall through */ case BLKTRACESTOP : ret =__blk_trace_startstop (q, start);break ;
Signature · 1 line
2.19.2
ping ?
Quoted 28 lines · Mathieu Malaterre
There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1).
This commit remove the following warning:
kernel/trace/blktrace.c:725:9: warning: this statement may fall through [-Wimplicit-fallthrough=]Signed-off-by Mathieu Malaterre <[email protected]>--- kernel/trace/blktrace.c | 1 + 1 file changed, 1 insertion(+)kernel/trace/blktrace.c +1
-1@@ -723,6 +723,7 @@ int blk_trace_ioctl(struct block_device *bdev, unsigned cmd, char __user *arg)#endif case BLKTRACESTART : start =1 ; +/* fall through */ case BLKTRACESTOP : ret =__blk_trace_startstop (q, start);break ; --2.19.2
Quoted 6 lines · Mathieu Malaterre
There is a plan to build the kernel with -Wimplicit-fallthrough and this place in the code produced a warning (W=1).
This commit remove the following warning:
kernel/trace/blktrace.c:725:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
Applied, thanks.
Signature · 1 line
Jens Axboe