Commit bf1881cf authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'Wimplicit-fallthrough-5.3-rc4' of...

Merge tag 'Wimplicit-fallthrough-5.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux

Pull fall-through fixes from Gustavo A. R. Silva:
 "Mark more switch cases where we are expecting to fall through, fixing
  fall-through warnings in arm, sparc64, mips, i386 and s390"

* tag 'Wimplicit-fallthrough-5.3-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
  ARM: ep93xx: Mark expected switch fall-through
  scsi: fas216: Mark expected switch fall-throughs
  pcmcia: db1xxx_ss: Mark expected switch fall-throughs
  video: fbdev: omapfb_main: Mark expected switch fall-throughs
  watchdog: riowd: Mark expected switch fall-through
  s390/net: Mark expected switch fall-throughs
  crypto: ux500/crypt: Mark expected switch fall-throughs
  watchdog: wdt977: Mark expected switch fall-through
  watchdog: scx200_wdt: Mark expected switch fall-through
  watchdog: Mark expected switch fall-throughs
  ARM: signal: Mark expected switch fall-through
  mfd: omap-usb-host: Mark expected switch fall-throughs
  mfd: db8500-prcmu: Mark expected switch fall-throughs
  ARM: OMAP: dma: Mark expected switch fall-throughs
  ARM: alignment: Mark expected switch fall-throughs
  ARM: tegra: Mark expected switch fall-through
  ARM/hw_breakpoint: Mark expected switch fall-throughs
parents 451577f3 1f7585f3
...@@ -544,6 +544,7 @@ static int arch_build_bp_info(struct perf_event *bp, ...@@ -544,6 +544,7 @@ static int arch_build_bp_info(struct perf_event *bp,
if ((hw->ctrl.type != ARM_BREAKPOINT_EXECUTE) if ((hw->ctrl.type != ARM_BREAKPOINT_EXECUTE)
&& max_watchpoint_len >= 8) && max_watchpoint_len >= 8)
break; break;
/* Else, fall through */
default: default:
return -EINVAL; return -EINVAL;
} }
...@@ -608,10 +609,12 @@ int hw_breakpoint_arch_parse(struct perf_event *bp, ...@@ -608,10 +609,12 @@ int hw_breakpoint_arch_parse(struct perf_event *bp,
/* Allow halfword watchpoints and breakpoints. */ /* Allow halfword watchpoints and breakpoints. */
if (hw->ctrl.len == ARM_BREAKPOINT_LEN_2) if (hw->ctrl.len == ARM_BREAKPOINT_LEN_2)
break; break;
/* Else, fall through */
case 3: case 3:
/* Allow single byte watchpoint. */ /* Allow single byte watchpoint. */
if (hw->ctrl.len == ARM_BREAKPOINT_LEN_1) if (hw->ctrl.len == ARM_BREAKPOINT_LEN_1)
break; break;
/* Else, fall through */
default: default:
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
...@@ -861,6 +864,7 @@ static int hw_breakpoint_pending(unsigned long addr, unsigned int fsr, ...@@ -861,6 +864,7 @@ static int hw_breakpoint_pending(unsigned long addr, unsigned int fsr,
break; break;
case ARM_ENTRY_ASYNC_WATCHPOINT: case ARM_ENTRY_ASYNC_WATCHPOINT:
WARN(1, "Asynchronous watchpoint exception taken. Debugging results may be unreliable\n"); WARN(1, "Asynchronous watchpoint exception taken. Debugging results may be unreliable\n");
/* Fall through */
case ARM_ENTRY_SYNC_WATCHPOINT: case ARM_ENTRY_SYNC_WATCHPOINT:
watchpoint_handler(addr, fsr, regs); watchpoint_handler(addr, fsr, regs);
break; break;
...@@ -909,6 +913,7 @@ static bool core_has_os_save_restore(void) ...@@ -909,6 +913,7 @@ static bool core_has_os_save_restore(void)
ARM_DBG_READ(c1, c1, 4, oslsr); ARM_DBG_READ(c1, c1, 4, oslsr);
if (oslsr & ARM_OSLSR_OSLM0) if (oslsr & ARM_OSLSR_OSLM0)
return true; return true;
/* Else, fall through */
default: default:
return false; return false;
} }
......
...@@ -596,6 +596,7 @@ static int do_signal(struct pt_regs *regs, int syscall) ...@@ -596,6 +596,7 @@ static int do_signal(struct pt_regs *regs, int syscall)
switch (retval) { switch (retval) {
case -ERESTART_RESTARTBLOCK: case -ERESTART_RESTARTBLOCK:
restart -= 2; restart -= 2;
/* Fall through */
case -ERESTARTNOHAND: case -ERESTARTNOHAND:
case -ERESTARTSYS: case -ERESTARTSYS:
case -ERESTARTNOINTR: case -ERESTARTNOINTR:
......
...@@ -49,6 +49,7 @@ static int crunch_do(struct notifier_block *self, unsigned long cmd, void *t) ...@@ -49,6 +49,7 @@ static int crunch_do(struct notifier_block *self, unsigned long cmd, void *t)
* FALLTHROUGH: Ensure we don't try to overwrite our newly * FALLTHROUGH: Ensure we don't try to overwrite our newly
* initialised state information on the first fault. * initialised state information on the first fault.
*/ */
/* Fall through */
case THREAD_NOTIFY_EXIT: case THREAD_NOTIFY_EXIT:
crunch_task_release(thread); crunch_task_release(thread);
......
...@@ -70,7 +70,7 @@ static void __init tegra_cpu_reset_handler_enable(void) ...@@ -70,7 +70,7 @@ static void __init tegra_cpu_reset_handler_enable(void)
switch (err) { switch (err) {
case -ENOSYS: case -ENOSYS:
tegra_cpu_reset_handler_set(reset_address); tegra_cpu_reset_handler_set(reset_address);
/* pass-through */ /* fall through */
case 0: case 0:
is_enabled = true; is_enabled = true;
break; break;
......
...@@ -695,7 +695,7 @@ thumb2arm(u16 tinstr) ...@@ -695,7 +695,7 @@ thumb2arm(u16 tinstr)
return subset[(L<<1) | ((tinstr & (1<<8)) >> 8)] | return subset[(L<<1) | ((tinstr & (1<<8)) >> 8)] |
(tinstr & 255); /* register_list */ (tinstr & 255); /* register_list */
} }
/* Else fall through for illegal instruction case */ /* Else, fall through - for illegal instruction case */
default: default:
return BAD_INSTR; return BAD_INSTR;
...@@ -751,6 +751,8 @@ do_alignment_t32_to_handler(unsigned long *pinstr, struct pt_regs *regs, ...@@ -751,6 +751,8 @@ do_alignment_t32_to_handler(unsigned long *pinstr, struct pt_regs *regs,
case 0xe8e0: case 0xe8e0:
case 0xe9e0: case 0xe9e0:
poffset->un = (tinst2 & 0xff) << 2; poffset->un = (tinst2 & 0xff) << 2;
/* Fall through */
case 0xe940: case 0xe940:
case 0xe9c0: case 0xe9c0:
return do_alignment_ldrdstrd; return do_alignment_ldrdstrd;
......
...@@ -388,17 +388,15 @@ void omap_set_dma_src_burst_mode(int lch, enum omap_dma_burst_mode burst_mode) ...@@ -388,17 +388,15 @@ void omap_set_dma_src_burst_mode(int lch, enum omap_dma_burst_mode burst_mode)
/* /*
* not supported by current hardware on OMAP1 * not supported by current hardware on OMAP1
* w |= (0x03 << 7); * w |= (0x03 << 7);
* fall through
*/ */
/* fall through */
case OMAP_DMA_DATA_BURST_16: case OMAP_DMA_DATA_BURST_16:
if (dma_omap2plus()) { if (dma_omap2plus()) {
burst = 0x3; burst = 0x3;
break; break;
} }
/* /* OMAP1 don't support burst 16 */
* OMAP1 don't support burst 16 /* fall through */
* fall through
*/
default: default:
BUG(); BUG();
} }
...@@ -474,10 +472,8 @@ void omap_set_dma_dest_burst_mode(int lch, enum omap_dma_burst_mode burst_mode) ...@@ -474,10 +472,8 @@ void omap_set_dma_dest_burst_mode(int lch, enum omap_dma_burst_mode burst_mode)
burst = 0x3; burst = 0x3;
break; break;
} }
/* /* OMAP1 don't support burst 16 */
* OMAP1 don't support burst 16 /* fall through */
* fall through
*/
default: default:
printk(KERN_ERR "Invalid DMA burst mode\n"); printk(KERN_ERR "Invalid DMA burst mode\n");
BUG(); BUG();
......
...@@ -314,14 +314,17 @@ void cryp_save_device_context(struct cryp_device_data *device_data, ...@@ -314,14 +314,17 @@ void cryp_save_device_context(struct cryp_device_data *device_data,
case CRYP_KEY_SIZE_256: case CRYP_KEY_SIZE_256:
ctx->key_4_l = readl_relaxed(&src_reg->key_4_l); ctx->key_4_l = readl_relaxed(&src_reg->key_4_l);
ctx->key_4_r = readl_relaxed(&src_reg->key_4_r); ctx->key_4_r = readl_relaxed(&src_reg->key_4_r);
/* Fall through */
case CRYP_KEY_SIZE_192: case CRYP_KEY_SIZE_192:
ctx->key_3_l = readl_relaxed(&src_reg->key_3_l); ctx->key_3_l = readl_relaxed(&src_reg->key_3_l);
ctx->key_3_r = readl_relaxed(&src_reg->key_3_r); ctx->key_3_r = readl_relaxed(&src_reg->key_3_r);
/* Fall through */
case CRYP_KEY_SIZE_128: case CRYP_KEY_SIZE_128:
ctx->key_2_l = readl_relaxed(&src_reg->key_2_l); ctx->key_2_l = readl_relaxed(&src_reg->key_2_l);
ctx->key_2_r = readl_relaxed(&src_reg->key_2_r); ctx->key_2_r = readl_relaxed(&src_reg->key_2_r);
/* Fall through */
default: default:
ctx->key_1_l = readl_relaxed(&src_reg->key_1_l); ctx->key_1_l = readl_relaxed(&src_reg->key_1_l);
...@@ -361,14 +364,17 @@ void cryp_restore_device_context(struct cryp_device_data *device_data, ...@@ -361,14 +364,17 @@ void cryp_restore_device_context(struct cryp_device_data *device_data,
case CRYP_KEY_SIZE_256: case CRYP_KEY_SIZE_256:
writel_relaxed(ctx->key_4_l, &reg->key_4_l); writel_relaxed(ctx->key_4_l, &reg->key_4_l);
writel_relaxed(ctx->key_4_r, &reg->key_4_r); writel_relaxed(ctx->key_4_r, &reg->key_4_r);
/* Fall through */
case CRYP_KEY_SIZE_192: case CRYP_KEY_SIZE_192:
writel_relaxed(ctx->key_3_l, &reg->key_3_l); writel_relaxed(ctx->key_3_l, &reg->key_3_l);
writel_relaxed(ctx->key_3_r, &reg->key_3_r); writel_relaxed(ctx->key_3_r, &reg->key_3_r);
/* Fall through */
case CRYP_KEY_SIZE_128: case CRYP_KEY_SIZE_128:
writel_relaxed(ctx->key_2_l, &reg->key_2_l); writel_relaxed(ctx->key_2_l, &reg->key_2_l);
writel_relaxed(ctx->key_2_r, &reg->key_2_r); writel_relaxed(ctx->key_2_r, &reg->key_2_r);
/* Fall through */
default: default:
writel_relaxed(ctx->key_1_l, &reg->key_1_l); writel_relaxed(ctx->key_1_l, &reg->key_1_l);
......
...@@ -1590,8 +1590,10 @@ static unsigned long dsiclk_rate(u8 n) ...@@ -1590,8 +1590,10 @@ static unsigned long dsiclk_rate(u8 n)
switch (divsel) { switch (divsel) {
case PRCM_DSI_PLLOUT_SEL_PHI_4: case PRCM_DSI_PLLOUT_SEL_PHI_4:
div *= 2; div *= 2;
/* Fall through */
case PRCM_DSI_PLLOUT_SEL_PHI_2: case PRCM_DSI_PLLOUT_SEL_PHI_2:
div *= 2; div *= 2;
/* Fall through */
case PRCM_DSI_PLLOUT_SEL_PHI: case PRCM_DSI_PLLOUT_SEL_PHI:
return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK), return pll_rate(PRCM_PLLDSI_FREQ, clock_rate(PRCMU_HDMICLK),
PLL_RAW) / div; PLL_RAW) / div;
......
...@@ -308,7 +308,7 @@ static int usbhs_runtime_resume(struct device *dev) ...@@ -308,7 +308,7 @@ static int usbhs_runtime_resume(struct device *dev)
i, r); i, r);
} }
} }
/* Fall through as HSIC mode needs utmi_clk */ /* Fall through - as HSIC mode needs utmi_clk */
case OMAP_EHCI_PORT_MODE_TLL: case OMAP_EHCI_PORT_MODE_TLL:
if (!IS_ERR(omap->utmi_clk[i])) { if (!IS_ERR(omap->utmi_clk[i])) {
...@@ -344,7 +344,7 @@ static int usbhs_runtime_suspend(struct device *dev) ...@@ -344,7 +344,7 @@ static int usbhs_runtime_suspend(struct device *dev)
if (!IS_ERR(omap->hsic480m_clk[i])) if (!IS_ERR(omap->hsic480m_clk[i]))
clk_disable_unprepare(omap->hsic480m_clk[i]); clk_disable_unprepare(omap->hsic480m_clk[i]);
/* Fall through as utmi_clks were used in HSIC mode */ /* Fall through - as utmi_clks were used in HSIC mode */
case OMAP_EHCI_PORT_MODE_TLL: case OMAP_EHCI_PORT_MODE_TLL:
if (!IS_ERR(omap->utmi_clk[i])) if (!IS_ERR(omap->utmi_clk[i]))
......
...@@ -255,8 +255,10 @@ static int db1x_pcmcia_configure(struct pcmcia_socket *skt, ...@@ -255,8 +255,10 @@ static int db1x_pcmcia_configure(struct pcmcia_socket *skt,
switch (state->Vcc) { switch (state->Vcc) {
case 50: case 50:
++v; ++v;
/* fall through */
case 33: case 33:
++v; ++v;
/* fall through */
case 0: case 0:
break; break;
default: default:
...@@ -267,9 +269,11 @@ static int db1x_pcmcia_configure(struct pcmcia_socket *skt, ...@@ -267,9 +269,11 @@ static int db1x_pcmcia_configure(struct pcmcia_socket *skt,
switch (state->Vpp) { switch (state->Vpp) {
case 12: case 12:
++p; ++p;
/* fall through */
case 33: case 33:
case 50: case 50:
++p; ++p;
/* fall through */
case 0: case 0:
break; break;
default: default:
......
...@@ -1704,6 +1704,7 @@ static void ctcmpc_chx_attnbusy(fsm_instance *fsm, int event, void *arg) ...@@ -1704,6 +1704,7 @@ static void ctcmpc_chx_attnbusy(fsm_instance *fsm, int event, void *arg)
grp->changed_side = 2; grp->changed_side = 2;
break; break;
} }
/* Else, fall through */
case MPCG_STATE_XID0IOWAIX: case MPCG_STATE_XID0IOWAIX:
case MPCG_STATE_XID7INITW: case MPCG_STATE_XID7INITW:
case MPCG_STATE_XID7INITX: case MPCG_STATE_XID7INITX:
......
...@@ -357,6 +357,7 @@ int ctc_mpc_alloc_channel(int port_num, void (*callback)(int, int)) ...@@ -357,6 +357,7 @@ int ctc_mpc_alloc_channel(int port_num, void (*callback)(int, int))
/*fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW);*/ /*fsm_newstate(grp->fsm, MPCG_STATE_XID2INITW);*/
if (callback) if (callback)
grp->send_qllc_disc = 1; grp->send_qllc_disc = 1;
/* Else, fall through */
case MPCG_STATE_XID0IOWAIT: case MPCG_STATE_XID0IOWAIT:
fsm_deltimer(&grp->timer); fsm_deltimer(&grp->timer);
grp->outstanding_xid2 = 0; grp->outstanding_xid2 = 0;
...@@ -1469,6 +1470,7 @@ static void mpc_action_timeout(fsm_instance *fi, int event, void *arg) ...@@ -1469,6 +1470,7 @@ static void mpc_action_timeout(fsm_instance *fi, int event, void *arg)
if ((fsm_getstate(rch->fsm) == CH_XID0_PENDING) && if ((fsm_getstate(rch->fsm) == CH_XID0_PENDING) &&
(fsm_getstate(wch->fsm) == CH_XID0_PENDING)) (fsm_getstate(wch->fsm) == CH_XID0_PENDING))
break; break;
/* Else, fall through */
default: default:
fsm_event(grp->fsm, MPCG_EVENT_INOP, dev); fsm_event(grp->fsm, MPCG_EVENT_INOP, dev);
} }
...@@ -2089,6 +2091,7 @@ static int mpc_send_qllc_discontact(struct net_device *dev) ...@@ -2089,6 +2091,7 @@ static int mpc_send_qllc_discontact(struct net_device *dev)
grp->estconnfunc = NULL; grp->estconnfunc = NULL;
break; break;
} }
/* Else, fall through */
case MPCG_STATE_FLOWC: case MPCG_STATE_FLOWC:
case MPCG_STATE_READY: case MPCG_STATE_READY:
grp->send_qllc_disc = 2; grp->send_qllc_disc = 2;
......
...@@ -333,7 +333,7 @@ static int qeth_l2_process_inbound_buffer(struct qeth_card *card, ...@@ -333,7 +333,7 @@ static int qeth_l2_process_inbound_buffer(struct qeth_card *card,
card->osn_info.data_cb(skb); card->osn_info.data_cb(skb);
break; break;
} }
/* else unknown */ /* Else, fall through */
default: default:
dev_kfree_skb_any(skb); dev_kfree_skb_any(skb);
QETH_CARD_TEXT(card, 3, "inbunkno"); QETH_CARD_TEXT(card, 3, "inbunkno");
......
...@@ -603,6 +603,7 @@ static void fas216_handlesync(FAS216_Info *info, char *msg) ...@@ -603,6 +603,7 @@ static void fas216_handlesync(FAS216_Info *info, char *msg)
msgqueue_flush(&info->scsi.msgs); msgqueue_flush(&info->scsi.msgs);
msgqueue_addmsg(&info->scsi.msgs, 1, MESSAGE_REJECT); msgqueue_addmsg(&info->scsi.msgs, 1, MESSAGE_REJECT);
info->scsi.phase = PHASE_MSGOUT_EXPECT; info->scsi.phase = PHASE_MSGOUT_EXPECT;
/* fall through */
case async: case async:
dev->period = info->ifcfg.asyncperiod / 4; dev->period = info->ifcfg.asyncperiod / 4;
...@@ -915,6 +916,7 @@ static void fas216_disconnect_intr(FAS216_Info *info) ...@@ -915,6 +916,7 @@ static void fas216_disconnect_intr(FAS216_Info *info)
fas216_done(info, DID_ABORT); fas216_done(info, DID_ABORT);
break; break;
} }
/* else, fall through */
default: /* huh? */ default: /* huh? */
printk(KERN_ERR "scsi%d.%c: unexpected disconnect in phase %s\n", printk(KERN_ERR "scsi%d.%c: unexpected disconnect in phase %s\n",
...@@ -1411,6 +1413,8 @@ static void fas216_busservice_intr(FAS216_Info *info, unsigned int stat, unsigne ...@@ -1411,6 +1413,8 @@ static void fas216_busservice_intr(FAS216_Info *info, unsigned int stat, unsigne
case STATE(STAT_STATUS, PHASE_DATAOUT): /* Data Out -> Status */ case STATE(STAT_STATUS, PHASE_DATAOUT): /* Data Out -> Status */
case STATE(STAT_STATUS, PHASE_DATAIN): /* Data In -> Status */ case STATE(STAT_STATUS, PHASE_DATAIN): /* Data In -> Status */
fas216_stoptransfer(info); fas216_stoptransfer(info);
/* fall through */
case STATE(STAT_STATUS, PHASE_SELSTEPS):/* Sel w/ steps -> Status */ case STATE(STAT_STATUS, PHASE_SELSTEPS):/* Sel w/ steps -> Status */
case STATE(STAT_STATUS, PHASE_MSGOUT): /* Message Out -> Status */ case STATE(STAT_STATUS, PHASE_MSGOUT): /* Message Out -> Status */
case STATE(STAT_STATUS, PHASE_COMMAND): /* Command -> Status */ case STATE(STAT_STATUS, PHASE_COMMAND): /* Command -> Status */
...@@ -1422,6 +1426,8 @@ static void fas216_busservice_intr(FAS216_Info *info, unsigned int stat, unsigne ...@@ -1422,6 +1426,8 @@ static void fas216_busservice_intr(FAS216_Info *info, unsigned int stat, unsigne
case STATE(STAT_MESGIN, PHASE_DATAOUT): /* Data Out -> Message In */ case STATE(STAT_MESGIN, PHASE_DATAOUT): /* Data Out -> Message In */
case STATE(STAT_MESGIN, PHASE_DATAIN): /* Data In -> Message In */ case STATE(STAT_MESGIN, PHASE_DATAIN): /* Data In -> Message In */
fas216_stoptransfer(info); fas216_stoptransfer(info);
/* fall through */
case STATE(STAT_MESGIN, PHASE_COMMAND): /* Command -> Message In */ case STATE(STAT_MESGIN, PHASE_COMMAND): /* Command -> Message In */
case STATE(STAT_MESGIN, PHASE_SELSTEPS):/* Sel w/ steps -> Message In */ case STATE(STAT_MESGIN, PHASE_SELSTEPS):/* Sel w/ steps -> Message In */
case STATE(STAT_MESGIN, PHASE_MSGOUT): /* Message Out -> Message In */ case STATE(STAT_MESGIN, PHASE_MSGOUT): /* Message Out -> Message In */
...@@ -1575,6 +1581,7 @@ static void fas216_funcdone_intr(FAS216_Info *info, unsigned int stat, unsigned ...@@ -1575,6 +1581,7 @@ static void fas216_funcdone_intr(FAS216_Info *info, unsigned int stat, unsigned
fas216_message(info); fas216_message(info);
break; break;
} }
/* else, fall through */
default: default:
fas216_log(info, 0, "internal phase %s for function done?" fas216_log(info, 0, "internal phase %s for function done?"
...@@ -1957,6 +1964,7 @@ static void fas216_kick(FAS216_Info *info) ...@@ -1957,6 +1964,7 @@ static void fas216_kick(FAS216_Info *info)
switch (where_from) { switch (where_from) {
case TYPE_QUEUE: case TYPE_QUEUE:
fas216_allocate_tag(info, SCpnt); fas216_allocate_tag(info, SCpnt);
/* fall through */
case TYPE_OTHER: case TYPE_OTHER:
fas216_start_command(info, SCpnt); fas216_start_command(info, SCpnt);
break; break;
......
...@@ -447,6 +447,7 @@ static int set_color_mode(struct omapfb_plane_struct *plane, ...@@ -447,6 +447,7 @@ static int set_color_mode(struct omapfb_plane_struct *plane,
return 0; return 0;
case 12: case 12:
var->bits_per_pixel = 16; var->bits_per_pixel = 16;
/* fall through */
case 16: case 16:
if (plane->fbdev->panel->bpp == 12) if (plane->fbdev->panel->bpp == 12)
plane->color_mode = OMAPFB_COLOR_RGB444; plane->color_mode = OMAPFB_COLOR_RGB444;
...@@ -1534,20 +1535,27 @@ static void omapfb_free_resources(struct omapfb_device *fbdev, int state) ...@@ -1534,20 +1535,27 @@ static void omapfb_free_resources(struct omapfb_device *fbdev, int state)
case OMAPFB_ACTIVE: case OMAPFB_ACTIVE:
for (i = 0; i < fbdev->mem_desc.region_cnt; i++) for (i = 0; i < fbdev->mem_desc.region_cnt; i++)
unregister_framebuffer(fbdev->fb_info[i]); unregister_framebuffer(fbdev->fb_info[i]);
/* fall through */
case 7: case 7:
omapfb_unregister_sysfs(fbdev); omapfb_unregister_sysfs(fbdev);
/* fall through */
case 6: case 6:
if (fbdev->panel->disable) if (fbdev->panel->disable)
fbdev->panel->disable(fbdev->panel); fbdev->panel->disable(fbdev->panel);
/* fall through */
case 5: case 5:
omapfb_set_update_mode(fbdev, OMAPFB_UPDATE_DISABLED); omapfb_set_update_mode(fbdev, OMAPFB_UPDATE_DISABLED);
/* fall through */
case 4: case 4:
planes_cleanup(fbdev); planes_cleanup(fbdev);
/* fall through */
case 3: case 3:
ctrl_cleanup(fbdev); ctrl_cleanup(fbdev);
/* fall through */
case 2: case 2:
if (fbdev->panel->cleanup) if (fbdev->panel->cleanup)
fbdev->panel->cleanup(fbdev->panel); fbdev->panel->cleanup(fbdev->panel);
/* fall through */
case 1: case 1:
dev_set_drvdata(fbdev->dev, NULL); dev_set_drvdata(fbdev->dev, NULL);
kfree(fbdev); kfree(fbdev);
......
...@@ -235,6 +235,7 @@ static long ar7_wdt_ioctl(struct file *file, ...@@ -235,6 +235,7 @@ static long ar7_wdt_ioctl(struct file *file,
ar7_wdt_update_margin(new_margin); ar7_wdt_update_margin(new_margin);
ar7_wdt_kick(1); ar7_wdt_kick(1);
spin_unlock(&wdt_lock); spin_unlock(&wdt_lock);
/* Fall through */
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
if (put_user(margin, (int *)arg)) if (put_user(margin, (int *)arg))
......
...@@ -651,7 +651,7 @@ static long pcwd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -651,7 +651,7 @@ static long pcwd_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return -EINVAL; return -EINVAL;
pcwd_keepalive(); pcwd_keepalive();
/* Fall */ /* Fall through */
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
return put_user(heartbeat, argp); return put_user(heartbeat, argp);
......
...@@ -134,7 +134,7 @@ static long riowd_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -134,7 +134,7 @@ static long riowd_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
return -EINVAL; return -EINVAL;
riowd_timeout = (new_margin + 59) / 60; riowd_timeout = (new_margin + 59) / 60;
riowd_writereg(p, riowd_timeout, WDTO_INDEX); riowd_writereg(p, riowd_timeout, WDTO_INDEX);
/* Fall */ /* Fall through */
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
return put_user(riowd_timeout * 60, (int __user *)argp); return put_user(riowd_timeout * 60, (int __user *)argp);
......
...@@ -202,6 +202,7 @@ static long sbwdog_ioctl(struct file *file, unsigned int cmd, ...@@ -202,6 +202,7 @@ static long sbwdog_ioctl(struct file *file, unsigned int cmd,
timeout = time; timeout = time;
sbwdog_set(user_dog, timeout); sbwdog_set(user_dog, timeout);
sbwdog_pet(user_dog); sbwdog_pet(user_dog);
/* Fall through */
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
/* /*
......
...@@ -186,6 +186,7 @@ static long scx200_wdt_ioctl(struct file *file, unsigned int cmd, ...@@ -186,6 +186,7 @@ static long scx200_wdt_ioctl(struct file *file, unsigned int cmd,
margin = new_margin; margin = new_margin;
scx200_wdt_update_margin(); scx200_wdt_update_margin();
scx200_wdt_ping(); scx200_wdt_ping();
/* Fall through */
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
if (put_user(margin, p)) if (put_user(margin, p))
return -EFAULT; return -EFAULT;
......
...@@ -389,7 +389,7 @@ static long wdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -389,7 +389,7 @@ static long wdt_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
if (wdt_set_heartbeat(new_heartbeat)) if (wdt_set_heartbeat(new_heartbeat))
return -EINVAL; return -EINVAL;
wdt_ping(); wdt_ping();
/* Fall */ /* Fall through */
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
return put_user(heartbeat, p); return put_user(heartbeat, p);
default: default:
......
...@@ -398,7 +398,7 @@ static long wdt977_ioctl(struct file *file, unsigned int cmd, ...@@ -398,7 +398,7 @@ static long wdt977_ioctl(struct file *file, unsigned int cmd,
return -EINVAL; return -EINVAL;
wdt977_keepalive(); wdt977_keepalive();
/* Fall */ /* Fall through */
case WDIOC_GETTIMEOUT: case WDIOC_GETTIMEOUT:
return put_user(timeout, uarg.i); return put_user(timeout, uarg.i);
......
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