Commit 2c7749b9 authored by Joe Perches's avatar Joe Perches Committed by Vasily Gorbik

s390: use fallthrough;

Convert the various uses of fallthrough comments to fallthrough;

Done via script
Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe.com/Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 4141b6a5
...@@ -487,7 +487,7 @@ void do_signal(struct pt_regs *regs) ...@@ -487,7 +487,7 @@ void do_signal(struct pt_regs *regs)
regs->gprs[2] = -EINTR; regs->gprs[2] = -EINTR;
break; break;
} }
/* fallthrough */ fallthrough;
case -ERESTARTNOINTR: case -ERESTARTNOINTR:
regs->gprs[2] = regs->orig_gpr2; regs->gprs[2] = regs->orig_gpr2;
regs->psw.addr = regs->psw.addr =
...@@ -514,7 +514,7 @@ void do_signal(struct pt_regs *regs) ...@@ -514,7 +514,7 @@ void do_signal(struct pt_regs *regs)
case -ERESTART_RESTARTBLOCK: case -ERESTART_RESTARTBLOCK:
/* Restart with sys_restart_syscall */ /* Restart with sys_restart_syscall */
regs->int_code = __NR_restart_syscall; regs->int_code = __NR_restart_syscall;
/* fallthrough */ fallthrough;
case -ERESTARTNOHAND: case -ERESTARTNOHAND:
case -ERESTARTSYS: case -ERESTARTSYS:
case -ERESTARTNOINTR: case -ERESTARTNOINTR:
......
...@@ -83,7 +83,7 @@ static cpumask_t cpu_group_map(struct mask_info *info, unsigned int cpu) ...@@ -83,7 +83,7 @@ static cpumask_t cpu_group_map(struct mask_info *info, unsigned int cpu)
cpumask_copy(&mask, cpu_present_mask); cpumask_copy(&mask, cpu_present_mask);
break; break;
default: default:
/* fallthrough */ fallthrough;
case TOPOLOGY_MODE_SINGLE: case TOPOLOGY_MODE_SINGLE:
cpumask_copy(&mask, cpumask_of(cpu)); cpumask_copy(&mask, cpumask_of(cpu));
break; break;
......
...@@ -122,7 +122,7 @@ static void dump_pagetable(unsigned long asce, unsigned long address) ...@@ -122,7 +122,7 @@ static void dump_pagetable(unsigned long asce, unsigned long address)
if (*table & _REGION_ENTRY_INVALID) if (*table & _REGION_ENTRY_INVALID)
goto out; goto out;
table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN); table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
/* fallthrough */ fallthrough;
case _ASCE_TYPE_REGION2: case _ASCE_TYPE_REGION2:
table += (address & _REGION2_INDEX) >> _REGION2_SHIFT; table += (address & _REGION2_INDEX) >> _REGION2_SHIFT;
if (bad_address(table)) if (bad_address(table))
...@@ -131,7 +131,7 @@ static void dump_pagetable(unsigned long asce, unsigned long address) ...@@ -131,7 +131,7 @@ static void dump_pagetable(unsigned long asce, unsigned long address)
if (*table & _REGION_ENTRY_INVALID) if (*table & _REGION_ENTRY_INVALID)
goto out; goto out;
table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN); table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
/* fallthrough */ fallthrough;
case _ASCE_TYPE_REGION3: case _ASCE_TYPE_REGION3:
table += (address & _REGION3_INDEX) >> _REGION3_SHIFT; table += (address & _REGION3_INDEX) >> _REGION3_SHIFT;
if (bad_address(table)) if (bad_address(table))
...@@ -140,7 +140,7 @@ static void dump_pagetable(unsigned long asce, unsigned long address) ...@@ -140,7 +140,7 @@ static void dump_pagetable(unsigned long asce, unsigned long address)
if (*table & (_REGION_ENTRY_INVALID | _REGION3_ENTRY_LARGE)) if (*table & (_REGION_ENTRY_INVALID | _REGION3_ENTRY_LARGE))
goto out; goto out;
table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN); table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
/* fallthrough */ fallthrough;
case _ASCE_TYPE_SEGMENT: case _ASCE_TYPE_SEGMENT:
table += (address & _SEGMENT_INDEX) >> _SEGMENT_SHIFT; table += (address & _SEGMENT_INDEX) >> _SEGMENT_SHIFT;
if (bad_address(table)) if (bad_address(table))
...@@ -327,7 +327,7 @@ static noinline void do_fault_error(struct pt_regs *regs, int access, ...@@ -327,7 +327,7 @@ static noinline void do_fault_error(struct pt_regs *regs, int access,
case VM_FAULT_BADACCESS: case VM_FAULT_BADACCESS:
if (access == VM_EXEC && signal_return(regs) == 0) if (access == VM_EXEC && signal_return(regs) == 0)
break; break;
/* fallthrough */ fallthrough;
case VM_FAULT_BADMAP: case VM_FAULT_BADMAP:
/* Bad memory access. Check if it is kernel or user space. */ /* Bad memory access. Check if it is kernel or user space. */
if (user_mode(regs)) { if (user_mode(regs)) {
...@@ -337,9 +337,8 @@ static noinline void do_fault_error(struct pt_regs *regs, int access, ...@@ -337,9 +337,8 @@ static noinline void do_fault_error(struct pt_regs *regs, int access,
do_sigsegv(regs, si_code); do_sigsegv(regs, si_code);
break; break;
} }
/* fallthrough */ fallthrough;
case VM_FAULT_BADCONTEXT: case VM_FAULT_BADCONTEXT:
/* fallthrough */
case VM_FAULT_PFAULT: case VM_FAULT_PFAULT:
do_no_context(regs); do_no_context(regs);
break; break;
......
...@@ -326,7 +326,7 @@ void __tlb_remove_table(void *_table) ...@@ -326,7 +326,7 @@ void __tlb_remove_table(void *_table)
mask >>= 24; mask >>= 24;
if (mask != 0) if (mask != 0)
break; break;
/* fallthrough */ fallthrough;
case 3: /* 4K page table with pgstes */ case 3: /* 4K page table with pgstes */
if (mask & 3) if (mask & 3)
atomic_xor_bits(&page->_refcount, 3 << 24); atomic_xor_bits(&page->_refcount, 3 << 24);
......
...@@ -398,7 +398,7 @@ static void raw3215_irq(struct ccw_device *cdev, unsigned long intparm, ...@@ -398,7 +398,7 @@ static void raw3215_irq(struct ccw_device *cdev, unsigned long intparm,
} }
if (dstat == 0x08) if (dstat == 0x08)
break; break;
/* else, fall through */ fallthrough;
case 0x04: case 0x04:
/* Device end interrupt. */ /* Device end interrupt. */
if ((raw = req->info) == NULL) if ((raw = req->info) == NULL)
......
...@@ -137,7 +137,7 @@ static int hmcdrv_ftp_parse(char *cmd, struct hmcdrv_ftp_cmdspec *ftp) ...@@ -137,7 +137,7 @@ static int hmcdrv_ftp_parse(char *cmd, struct hmcdrv_ftp_cmdspec *ftp)
while ((*cmd != '\0') && !iscntrl(*cmd)) while ((*cmd != '\0') && !iscntrl(*cmd))
++cmd; ++cmd;
ftp->fname = start; ftp->fname = start;
/* fall through */ fallthrough;
default: default:
*cmd = '\0'; *cmd = '\0';
break; break;
......
...@@ -214,7 +214,7 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks) ...@@ -214,7 +214,7 @@ int sclp_sdias_copy(void *dest, int start_blk, int nr_blks)
break; break;
case SDIAS_EVSTATE_NO_DATA: case SDIAS_EVSTATE_NO_DATA:
TRACE("no data\n"); TRACE("no data\n");
/* fall through */ fallthrough;
default: default:
pr_err("Error from SCLP while copying hsa. Event status = %x\n", pr_err("Error from SCLP while copying hsa. Event status = %x\n",
sdias_evbuf.event_status); sdias_evbuf.event_status);
......
...@@ -677,7 +677,7 @@ tape_generic_remove(struct ccw_device *cdev) ...@@ -677,7 +677,7 @@ tape_generic_remove(struct ccw_device *cdev)
switch (device->tape_state) { switch (device->tape_state) {
case TS_INIT: case TS_INIT:
tape_state_set(device, TS_NOT_OPER); tape_state_set(device, TS_NOT_OPER);
/* fallthrough */ fallthrough;
case TS_NOT_OPER: case TS_NOT_OPER:
/* /*
* Nothing to do. * Nothing to do.
...@@ -950,7 +950,7 @@ __tape_start_request(struct tape_device *device, struct tape_request *request) ...@@ -950,7 +950,7 @@ __tape_start_request(struct tape_device *device, struct tape_request *request)
break; break;
if (device->tape_state == TS_UNUSED) if (device->tape_state == TS_UNUSED)
break; break;
/* fallthrough */ fallthrough;
default: default:
if (device->tape_state == TS_BLKUSE) if (device->tape_state == TS_BLKUSE)
break; break;
...@@ -1118,7 +1118,7 @@ __tape_do_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb) ...@@ -1118,7 +1118,7 @@ __tape_do_irq (struct ccw_device *cdev, unsigned long intparm, struct irb *irb)
case -ETIMEDOUT: case -ETIMEDOUT:
DBF_LH(1, "(%08x): Request timed out\n", DBF_LH(1, "(%08x): Request timed out\n",
device->cdev_id); device->cdev_id);
/* fallthrough */ fallthrough;
case -EIO: case -EIO:
__tape_end_request(device, request, -EIO); __tape_end_request(device, request, -EIO);
break; break;
......
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