linux/arch/arm64
Quentin Perret 38715a0ccb KVM: arm64: Don't return from void function
[ Upstream commit 1c3ace2b8b ]

Although harmless, the return statement in kvm_unexpected_el2_exception
is rather confusing as the function itself has a void return type. The
C standard is also pretty clear that "A return statement with an
expression shall not appear in a function whose return type is void".
Given that this return statement does not seem to add any actual value,
let's not pointlessly violate the standard.

Build-tested with GCC 10 and CLANG 13 for good measure, the disassembled
code is identical with or without the return statement.

Fixes: e9ee186bb7 ("KVM: arm64: Add kvm_extable for vaxorcism code")
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220705142310.3847918-1-qperret@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-21 15:15:57 +02:00
..
boot arm64: dts: qcom: qcs404: Fix incorrect USB2 PHYs assignment 2022-08-21 15:15:36 +02:00
configs arm64: defconfig: build imx-sdma as a module 2022-04-08 14:40:34 +02:00
crypto crypto: arm64/gcm - Select AEAD for GHASH_ARM64_CE 2022-08-21 15:15:44 +02:00
include arm64: Do not forget syscall when starting a new thread. 2022-08-21 15:15:28 +02:00
kernel arm64: cpufeature: Allow different PMU versions in ID_DFR0_EL1 2022-08-21 15:15:33 +02:00
kvm KVM: arm64: Don't return from void function 2022-08-21 15:15:57 +02:00
lib arm64: clear_page() shouldn't use DC ZVA when DCZID_EL0.DZP == 1 2022-01-27 10:53:54 +01:00
mm arm64: mm: Don't invalidate FROM_DEVICE buffers at start of DMA transfer 2022-06-25 15:16:09 +02:00
net bpf, arm64: Clear prog->jited_len along prog->jited 2022-06-14 18:32:40 +02:00
xen
Kbuild
Kconfig arm64: Mitigate spectre style branch history side channels 2022-03-11 12:11:53 +01:00
Kconfig.debug
Kconfig.platforms irqchip/exiu: Fix acknowledgment of edge triggered interrupts 2022-06-09 10:21:05 +02:00
Makefile