]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: VHE: Mark __hyp_call_panic __noreturn
authorPierre-Clément Tosi <ptosi@google.com>
Mon, 10 Jun 2024 06:32:34 +0000 (07:32 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:40:54 +0000 (17:40 +0000)
commit3c6eb64876937e38672fba63f11634b9ef3013e1
treeaf2d90332ac027d7fb566d705cdd4b726b8f67e4
parent4ab3f9dd561b428460038a9bb041e92db6197f18
KVM: arm64: VHE: Mark __hyp_call_panic __noreturn

Given that the sole purpose of __hyp_call_panic() is to call panic(), a
__noreturn function, give it the __noreturn attribute, removing the need
for its caller to use unreachable().

Signed-off-by: Pierre-Clément Tosi <ptosi@google.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20240610063244.2828978-6-ptosi@google.com
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/vhe/switch.c