Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/111e9d3d55c686892357aa5269022024b4d48330.1605896059.git.gustavoars@kernel.org

authored by

Gustavo A. R. Silva and committed by
Sam Ravnborg
8ce9daf8 d963ab0f

+1
+1
drivers/gpu/drm/drm_bufs.c
··· 77 77 if ((entry->map->offset & 0xffffffff) == 78 78 (map->offset & 0xffffffff)) 79 79 return entry; 80 + break; 80 81 default: /* Make gcc happy */ 81 82 ; 82 83 }