mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: tip-bot for Boris Ostrovsky <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, hpa@zytor.com,
	tglx@linutronix.de, boris.ostrovsky@oracle.com
Subject: [tip:smp/hotplug] xen/x86: Define stubs for xen_smp_intr_init/xen_smp_intr_free
Date: Thu, 28 Jul 2016 08:34:04 -0700	[thread overview]
Message-ID: <tip-854e9fa5a56a9771fad4701a427e4844d2cbade1@git.kernel.org> (raw)
In-Reply-To: <1469481288-2378-1-git-send-email-boris.ostrovsky@oracle.com>

Commit-ID:  854e9fa5a56a9771fad4701a427e4844d2cbade1
Gitweb:     http://git.kernel.org/tip/854e9fa5a56a9771fad4701a427e4844d2cbade1
Author:     Boris Ostrovsky <boris.ostrovsky@oracle.com>
AuthorDate: Mon, 25 Jul 2016 17:14:48 -0400
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Wed, 27 Jul 2016 12:38:08 +0200

xen/x86: Define stubs for xen_smp_intr_init/xen_smp_intr_free

xen_smp_intr_init() and xen_smp_intr_free() are now called from
enlighten.c and therefore not guaranteed to have CONFIG_SMP.

Instead of adding multiple ifdefs there provide stubs in smp.h

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: jgross@suse.com
Cc: xen-devel@lists.xenproject.org
Cc: david.vrabel@citrix.com
Link: http://lkml.kernel.org/r/1469481288-2378-1-git-send-email-boris.ostrovsky@oracle.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 arch/x86/xen/smp.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/x86/xen/smp.h b/arch/x86/xen/smp.h
index 45faaf3..a1918d8 100644
--- a/arch/x86/xen/smp.h
+++ b/arch/x86/xen/smp.h
@@ -1,5 +1,6 @@
 #ifndef _XEN_SMP_H
 
+#ifdef CONFIG_SMP
 extern void xen_send_IPI_mask(const struct cpumask *mask,
 			      int vector);
 extern void xen_send_IPI_mask_allbutself(const struct cpumask *mask,
@@ -19,4 +20,12 @@ static inline void xen_pvh_early_cpu_init(int cpu, bool entry)
 }
 #endif
 
+#else /* CONFIG_SMP */
+static inline int xen_smp_intr_init(unsigned int cpu)
+{
+	return 0;
+}
+static inline void xen_smp_intr_free(unsigned int cpu) {}
+#endif /* CONFIG_SMP */
+
 #endif

      parent reply	other threads:[~2016-07-28 15:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-25 21:14 [PATCH] " Boris Ostrovsky
2016-07-26  5:36 ` Juergen Gross
2016-07-28 15:34 ` tip-bot for Boris Ostrovsky [this message]

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=tip-854e9fa5a56a9771fad4701a427e4844d2cbade1@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome