Skip to content

Commit 12d8471

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390/uaccess: add "fallthrough" comments
Add "fallthrough" comments so nobody wonders if a break statement is missing. Reported-by: Joe Perches <joe@perches.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 20b4fb4 commit 12d8471

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/s390/lib/uaccess_pt.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,19 @@ static unsigned long follow_table(struct mm_struct *mm,
8989
if (unlikely(*table & _REGION_ENTRY_INV))
9090
return -0x39UL;
9191
table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
92+
/* fallthrough */
9293
case _ASCE_TYPE_REGION2:
9394
table = table + ((address >> 42) & 0x7ff);
9495
if (unlikely(*table & _REGION_ENTRY_INV))
9596
return -0x3aUL;
9697
table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
98+
/* fallthrough */
9799
case _ASCE_TYPE_REGION3:
98100
table = table + ((address >> 31) & 0x7ff);
99101
if (unlikely(*table & _REGION_ENTRY_INV))
100102
return -0x3bUL;
101103
table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
104+
/* fallthrough */
102105
case _ASCE_TYPE_SEGMENT:
103106
table = table + ((address >> 20) & 0x7ff);
104107
if (unlikely(*table & _SEGMENT_ENTRY_INV))

0 commit comments

Comments
 (0)