archive mirror
 help / color / mirror / Atom feed
From: Marc Zyngier <>
Cc: Alexandru Elisei <>,, James Morse <>,
	Julien Thierry <>,
	Suzuki K Poulose <>
Subject: [PATCH] KVM: arm64: Fix hyp_cpu_pm_{init,exit} __init annotation
Date: Wed, 23 Dec 2020 12:08:54 +0000	[thread overview]
Message-ID: <> (raw)

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 <>
 arch/arm64/kvm/arm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c
index 6e637d2b4cfb..71a49eae9ea0 100644
--- a/arch/arm64/kvm/arm.c
+++ b/arch/arm64/kvm/arm.c
@@ -1574,12 +1574,12 @@ static struct notifier_block hyp_init_cpu_pm_nb = {
 	.notifier_call = hyp_init_cpu_pm_notifier,
-static void __init hyp_cpu_pm_init(void)
+static void hyp_cpu_pm_init(void)
 	if (!is_protected_kvm_enabled())
-static void __init hyp_cpu_pm_exit(void)
+static void hyp_cpu_pm_exit(void)
 	if (!is_protected_kvm_enabled())

linux-arm-kernel mailing list

             reply	other threads:[~2020-12-23 12:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-23 12:08 Marc Zyngier [this message]
2020-12-29 22:34 ` [PATCH] KVM: arm64: Fix hyp_cpu_pm_{init,exit} __init annotation Nathan Chancellor

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \

* 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).