Commit 826bb728 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Bartlomiej Zolnierkiewicz

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: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent 8c152208
...@@ -1702,6 +1702,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd, ...@@ -1702,6 +1702,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
if(ivideo->warncount++ < 10) if(ivideo->warncount++ < 10)
printk(KERN_INFO printk(KERN_INFO
"sisfb: Deprecated ioctl call received - update your application!\n"); "sisfb: Deprecated ioctl call received - update your application!\n");
/* fall through */
case SISFB_GET_INFO: /* For communication with X driver */ case SISFB_GET_INFO: /* For communication with X driver */
ivideo->sisfb_infoblock.sisfb_id = SISFB_ID; ivideo->sisfb_infoblock.sisfb_id = SISFB_ID;
ivideo->sisfb_infoblock.sisfb_version = VER_MAJOR; ivideo->sisfb_infoblock.sisfb_version = VER_MAJOR;
...@@ -1755,6 +1756,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd, ...@@ -1755,6 +1756,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
if(ivideo->warncount++ < 10) if(ivideo->warncount++ < 10)
printk(KERN_INFO printk(KERN_INFO
"sisfb: Deprecated ioctl call received - update your application!\n"); "sisfb: Deprecated ioctl call received - update your application!\n");
/* fall through */
case SISFB_GET_VBRSTATUS: case SISFB_GET_VBRSTATUS:
if(sisfb_CheckVBRetrace(ivideo)) if(sisfb_CheckVBRetrace(ivideo))
return put_user((u32)1, argp); return put_user((u32)1, argp);
...@@ -1765,6 +1767,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd, ...@@ -1765,6 +1767,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
if(ivideo->warncount++ < 10) if(ivideo->warncount++ < 10)
printk(KERN_INFO printk(KERN_INFO
"sisfb: Deprecated ioctl call received - update your application!\n"); "sisfb: Deprecated ioctl call received - update your application!\n");
/* fall through */
case SISFB_GET_AUTOMAXIMIZE: case SISFB_GET_AUTOMAXIMIZE:
if(ivideo->sisfb_max) if(ivideo->sisfb_max)
return put_user((u32)1, argp); return put_user((u32)1, argp);
...@@ -1775,6 +1778,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd, ...@@ -1775,6 +1778,7 @@ static int sisfb_ioctl(struct fb_info *info, unsigned int cmd,
if(ivideo->warncount++ < 10) if(ivideo->warncount++ < 10)
printk(KERN_INFO printk(KERN_INFO
"sisfb: Deprecated ioctl call received - update your application!\n"); "sisfb: Deprecated ioctl call received - update your application!\n");
/* fall through */
case SISFB_SET_AUTOMAXIMIZE: case SISFB_SET_AUTOMAXIMIZE:
if(get_user(gpu32, argp)) if(get_user(gpu32, argp))
return -EFAULT; return -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment