OSDN Git Service

drm/drm_vm: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 15 Feb 2019 17:05:46 +0000 (11:05 -0600)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 19 Feb 2019 11:20:41 +0000 (12:20 +0100)
commit58db702266c16b8df29115ec919d56c820545d8c
tree04a3ad9da0fe24b18ce22424bf5a1d1d96b85430
parente179d8e074e05a913a0915ae3c4b82f1434d9f4e
drm/drm_vm: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch
cases where we are expecting to fall through.

Warning level 3 was used: -Wimplicit-fallthrough=3

Notice that, in this particular case, 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 <gustavo@embeddedor.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190215170546.GA30950@embeddedor
drivers/gpu/drm/drm_vm.c