]> git.baikalelectronics.ru Git - kernel.git/commit
video: vt8500lcdfb: fix fallthrough warning
authorSam Ravnborg <sam@ravnborg.org>
Sun, 12 Apr 2020 20:21:43 +0000 (22:21 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 17 Apr 2020 13:50:08 +0000 (15:50 +0200)
commit93d5e81649487eb105d790b51e0eab073d75d3ce
treea1c689b09724d3fd506b78ab0630598fae3a42fa
parent1d92e7bb6b40672c54f40a5d39d49eac7dab5e60
video: vt8500lcdfb: fix fallthrough warning

Fix following warning:
vt8500lcdfb.c: In function 'vt8500lcd_blank':
vt8500lcdfb.c:229:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
      if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR ||
         ^
vt8500lcdfb.c:233:2: note: here
     case FB_BLANK_UNBLANK:
     ^~~~

Adding a simple "fallthrough;" fixed the warning.
The fix was build tested.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reported-by: kbuild test robot <lkp@intel.com>
Fixes: 338ebb301dc1 ("fbdev: Implement simple blanking in pseudocolor modes for vt8500lcdfb")
Cc: Alexey Charkov <alchark@gmail.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: <stable@vger.kernel.org> # v2.6.38+
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200412202143.GA26948@ravnborg.org
drivers/video/fbdev/vt8500lcdfb.c