OSDN Git Service

video: omapfb: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 14 Oct 2021 16:53:20 +0000 (11:53 -0500)
committerSam Ravnborg <sam@ravnborg.org>
Thu, 14 Oct 2021 18:21:32 +0000 (20:21 +0200)
commitb7490aade5d251ad20e7a820f6f8d3eb87aa581e
treecc1ceb415d53f8cfa93a80df71306f83c6ad4514
parentf809891ee51b706e1a2a42998d8766c120660796
video: omapfb: Fix fall-through warning for Clang

Fix the following fallthrough warnings:

drivers/video/fbdev/omap/omapfb_main.c:1558:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
           case 0:
           ^
   drivers/video/fbdev/omap/omapfb_main.c:1558:2: note: insert 'break;' to avoid fall-through
           case 0:
           ^
           break;
   1 warning generated.

This helps with the ongoing efforts to globally enable
-Wimplicit-fallthrough for Clang.

Link: https://github.com/KSPP/linux/issues/115
Link: https://lore.kernel.org/lkml/202110141005.hUjaYMEi-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
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/20211014165320.GA1145571@embeddedor
drivers/video/fbdev/omap/omapfb_main.c