]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Fix hyp_cpu_pm_{init,exit} __init annotation
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Dec 2020 12:08:54 +0000 (12:08 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 30 Dec 2020 09:13:01 +0000 (09:13 +0000)
commit73c99ddc51b883c554f6c4b2c005f8e5c39b2a0c
treece1e37738ba75480b184f587d06047df4a3b3694
parent483178f5c2bef50a190b7fac6b9a1ec85ad43be7
KVM: arm64: Fix hyp_cpu_pm_{init,exit} __init annotation

The __init annotations on hyp_cpu_pm_{init,exit} are obviously incorrect,
and the build system shouts at you if you enable DEBUG_SECTION_MISMATCH.

Nothing really bad happens as we never execute that code outside of the
init context, but we can't label the callers as __int either, as kvm_init
isn't __init itself. Oh well.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Link: https://lore.kernel.org/r/20201223120854.255347-1-maz@kernel.org
arch/arm64/kvm/arm.c