From: Thorsten Blum <blum@kernel.org>
To: Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
shechenglong <shechenglong@xfusion.com>,
Thorsten Blum <blum@kernel.org>,
Jonathan Marek <jonathan@marek.ca>,
Karl Mehltretter <kmehltretter@gmail.com>,
Jinqian Yang <yangjinqian1@huawei.com>
Cc: Zenghui Yu <zenghui.yu@linux.dev>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] arm64: proton-pack: Remove redundant fallthrough statements
Date: Fri, 6 Nov 2026 01:59:52 +0100 [thread overview]
Message-ID: <20261106005952.1369-3-blum@kernel.org> (raw)
Consecutive switch labels do not need fallthrough statements. Remove the
redundant statements.
Signed-off-by: Thorsten Blum <blum@kernel.org>
---
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;
}
reply other threads:[~2026-11-06 1:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261106005952.1369-3-blum@kernel.org \
--to=blum@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=jonathan@marek.ca \
--cc=kmehltretter@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=shechenglong@xfusion.com \
--cc=will@kernel.org \
--cc=yangjinqian1@huawei.com \
--cc=zenghui.yu@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.