From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH 01/10] xen: xenbus: quirk uses x86 specific cpuid Date: Wed, 17 Oct 2012 09:39:08 +0100 Message-ID: <1350463157-5068-1-git-send-email-ian.campbell@citrix.com> References: <1350463138.2460.19.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1350463138.2460.19.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: Stefano Stabellini , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org This breaks on ARM. This quirk is not necessary on ARM because no hypervisors of that vintage exist for that architecture (port is too new). Signed-off-by: Ian Campbell --- drivers/xen/xenbus/xenbus_xs.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c index 48220e1..b46ad11 100644 --- a/drivers/xen/xenbus/xenbus_xs.c +++ b/drivers/xen/xenbus/xenbus_xs.c @@ -619,6 +619,8 @@ static struct xenbus_watch *find_watch(const char *token) return NULL; } + +#ifdef CONFIG_X86 /* * Certain older XenBus toolstack cannot handle reading values that are * not populated. Some Xen 3.4 installation are incapable of doing this @@ -637,6 +639,10 @@ static bool xen_strict_xenbus_quirk() return false; } +#else +static bool xen_strict_xenbus_quirk(void) { return false; } +#endif + static void xs_reset_watches(void) { int err, supported = 0; -- 1.7.2.5