[PATCH] arm64: proton-pack: Remove redundant fallthrough statements

From: Thorsten Blum

Date: Thu Nov 05 2026 - 20:05:39 EST


Consecutive switch labels do not need fallthrough statements. Remove the
redundant statements.

Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
---
arch/arm64/kernel/proton-pack.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/arch/arm64/kernel/proton-pack.c b/arch/arm64/kernel/proton-pack.c
index 8096f8069893..155504de3ab3 100644
--- a/arch/arm64/kernel/proton-pack.c
+++ b/arch/arm64/kernel/proton-pack.c
@@ -141,7 +141,6 @@ ssize_t cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr,

return sysfs_emit(buf, "Mitigation: %s%s\n", v2_str, bhb_str);
case SPECTRE_VULNERABLE:
- fallthrough;
default:
return sysfs_emit(buf, "Vulnerable\n");
}
@@ -187,7 +186,6 @@ static enum mitigation_state spectre_v2_get_cpu_fw_mitigation_state(void)
case SMCCC_ARCH_WORKAROUND_RET_UNAFFECTED:
return SPECTRE_UNAFFECTED;
default:
- fallthrough;
case SMCCC_RET_NOT_SUPPORTED:
return SPECTRE_VULNERABLE;
}
@@ -436,7 +434,6 @@ ssize_t cpu_show_spec_store_bypass(struct device *dev,
case SPECTRE_MITIGATED:
return sysfs_emit(buf, "Mitigation: Speculative Store Bypass disabled via prctl\n");
case SPECTRE_VULNERABLE:
- fallthrough;
default:
return sysfs_emit(buf, "Vulnerable\n");
}
@@ -480,11 +477,9 @@ static enum mitigation_state spectre_v4_get_cpu_fw_mitigation_state(void)
case SMCCC_RET_SUCCESS:
return SPECTRE_MITIGATED;
case SMCCC_ARCH_WORKAROUND_RET_UNAFFECTED:
- fallthrough;
case SMCCC_RET_NOT_REQUIRED:
return SPECTRE_UNAFFECTED;
default:
- fallthrough;
case SMCCC_RET_NOT_SUPPORTED:
return SPECTRE_VULNERABLE;
}
@@ -768,7 +763,6 @@ static int ssbd_prctl_get(struct task_struct *task)
/* Mitigations are disabled, so we're vulnerable. */
fallthrough;
case SPECTRE_VULNERABLE:
- fallthrough;
default:
return PR_SPEC_ENABLE;
}
@@ -930,7 +924,6 @@ static enum mitigation_state spectre_bhb_get_cpu_fw_mitigation_state(void)
case SMCCC_ARCH_WORKAROUND_RET_UNAFFECTED:
return SPECTRE_UNAFFECTED;
default:
- fallthrough;
case SMCCC_RET_NOT_SUPPORTED:
return SPECTRE_VULNERABLE;
}