KSPP / linux

Linux kernel source tree (Kernel Self Protection Project)
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project
Other
83 stars 5 forks source link

Fix -Wimplicit-fallthrough warnings in drivers/video/fbdev/sh7760fb.c #319

Closed GustavoARSilva closed 9 months ago

GustavoARSilva commented 1 year ago

Found after building next-20230620 sh with sh7763rdp_defconfig:

drivers/video/fbdev/sh7760fb.c: In function 'sh7760fb_get_color_info':
drivers/video/fbdev/sh7760fb.c:138:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
  138 |                 lgray = 1;
      |                 ~~~~~~^~~
drivers/video/fbdev/sh7760fb.c:139:9: note: here
  139 |         case LDDFR_4BPP:
      |         ^~~~
drivers/video/fbdev/sh7760fb.c:143:23: warning: this statement may fall through [-Wimplicit-fallthrough=]
  143 |                 lgray = 1;
      |                 ~~~~~~^~~
drivers/video/fbdev/sh7760fb.c:144:9: note: here
  144 |         case LDDFR_8BPP:
      |         ^~~~
GustavoARSilva commented 1 year ago

Patch: https://lore.kernel.org/linux-hardening/ZJR66f3UY0UFZJ01@work/

GustavoARSilva commented 9 months ago

fixed in commit 7947540d1d1e76297869921ed601e2f47fa6f27d