Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12d84713 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

s390/uaccess: add "fallthrough" comments



Add "fallthrough" comments so nobody wonders if a break statement is missing.

Reported-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 20b4fb48
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -89,16 +89,19 @@ static unsigned long follow_table(struct mm_struct *mm,
		if (unlikely(*table & _REGION_ENTRY_INV))
		if (unlikely(*table & _REGION_ENTRY_INV))
			return -0x39UL;
			return -0x39UL;
		table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
		table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
		/* fallthrough */
	case _ASCE_TYPE_REGION2:
	case _ASCE_TYPE_REGION2:
		table = table + ((address >> 42) & 0x7ff);
		table = table + ((address >> 42) & 0x7ff);
		if (unlikely(*table & _REGION_ENTRY_INV))
		if (unlikely(*table & _REGION_ENTRY_INV))
			return -0x3aUL;
			return -0x3aUL;
		table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
		table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
		/* fallthrough */
	case _ASCE_TYPE_REGION3:
	case _ASCE_TYPE_REGION3:
		table = table + ((address >> 31) & 0x7ff);
		table = table + ((address >> 31) & 0x7ff);
		if (unlikely(*table & _REGION_ENTRY_INV))
		if (unlikely(*table & _REGION_ENTRY_INV))
			return -0x3bUL;
			return -0x3bUL;
		table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
		table = (unsigned long *)(*table & _REGION_ENTRY_ORIGIN);
		/* fallthrough */
	case _ASCE_TYPE_SEGMENT:
	case _ASCE_TYPE_SEGMENT:
		table = table + ((address >> 20) & 0x7ff);
		table = table + ((address >> 20) & 0x7ff);
		if (unlikely(*table & _SEGMENT_ENTRY_INV))
		if (unlikely(*table & _SEGMENT_ENTRY_INV))