aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-11-09 12:09:33 -0500
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-11-09 12:09:33 -0500
commit826bb728796249d30b0e054c14b929c37afcb517 (patch)
tree485efd9f859097df48fc6a5c79a259e92e408a9b
parent8c152208685ad1b01efdf540ac4a1c155de3451d (diff)
video: fbdev: sis_main: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 115025 Addresses-Coverity-ID: 115026 Addresses-Coverity-ID: 115027 Addresses-Coverity-ID: 115028 Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Cc: Thomas Winischhofer <thomas@winischhofer.net> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r--drivers/video/fbdev/sis/sis_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/video/fbdev/sis/sis_main.c b/drivers/video/fbdev/sis/sis_main.c
index e92303823a4b..ecdd054d8951 100644
--- a/drivers/video/fbdev/sis/sis_main.c
+++ b/drivers/video/fbdev/sis/sis_main.c
@@ -1702,6 +1702,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
1702 if(ivideo->warncount++ < 10) 1702 if(ivideo->warncount++ < 10)
1703 printk(KERN_INFO 1703 printk(KERN_INFO
1704 "sisfb: Deprecated ioctl call received - update your application!\n"); 1704 "sisfb: Deprecated ioctl call received - update your application!\n");
1705 /* fall through */
1705 case SISFB_GET_INFO: /* For communication with X driver */ 1706 case SISFB_GET_INFO: /* For communication with X driver */
1706 ivideo->sisfb_infoblock.sisfb_id = SISFB_ID; 1707 ivideo->sisfb_infoblock.sisfb_id = SISFB_ID;
1707 ivideo->sisfb_infoblock.sisfb_version = VER_MAJOR; 1708 ivideo->sisfb_infoblock.sisfb_version = VER_MAJOR;
@@ -1755,6 +1756,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
1755 if(ivideo->warncount++ < 10) 1756 if(ivideo->warncount++ < 10)
1756 printk(KERN_INFO 1757 printk(KERN_INFO
1757 "sisfb: Deprecated ioctl call received - update your application!\n"); 1758 "sisfb: Deprecated ioctl call received - update your application!\n");
1759 /* fall through */
1758 case SISFB_GET_VBRSTATUS: 1760 case SISFB_GET_VBRSTATUS:
1759 if(sisfb_CheckVBRetrace(ivideo)) 1761 if(sisfb_CheckVBRetrace(ivideo))
1760 return put_user((u32)1, argp); 1762 return put_user((u32)1, argp);
@@ -1765,6 +1767,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
1765 if(ivideo->warncount++ < 10) 1767 if(ivideo->warncount++ < 10)
1766 printk(KERN_INFO 1768 printk(KERN_INFO
1767 "sisfb: Deprecated ioctl call received - update your application!\n"); 1769 "sisfb: Deprecated ioctl call received - update your application!\n");
1770 /* fall through */
1768 case SISFB_GET_AUTOMAXIMIZE: 1771 case SISFB_GET_AUTOMAXIMIZE:
1769 if(ivideo->sisfb_max) 1772 if(ivideo->sisfb_max)
1770 return put_user((u32)1, argp); 1773 return put_user((u32)1, argp);
@@ -1775,6 +1778,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
1775 if(ivideo->warncount++ < 10) 1778 if(ivideo->warncount++ < 10)
1776 printk(KERN_INFO 1779 printk(KERN_INFO
1777 "sisfb: Deprecated ioctl call received - update your application!\n"); 1780 "sisfb: Deprecated ioctl call received - update your application!\n");
1781 /* fall through */
1778 case SISFB_SET_AUTOMAXIMIZE: 1782 case SISFB_SET_AUTOMAXIMIZE:
1779 if(get_user(gpu32, argp)) 1783 if(get_user(gpu32, argp))
1780 return -EFAULT; 1784 return -EFAULT;