From: Ian Campbell Subject: Re: [RFC 07/14] xen/xsm: flask: Fix compilation when CONFIG_COMPAT=y Date: Fri, 14 Mar 2014 17:23:18 +0000 Message-ID: <1394817798.6065.10.camel@kazak.uk.xensource.com> References: <1394640969-25583-1-git-send-email-julien.grall@linaro.org> <1394640969-25583-8-git-send-email-julien.grall@linaro.org> <5321C024.1070703@tycho.nsa.gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WOVpL-0003OY-G2 for xen-devel@lists.xenproject.org; Fri, 14 Mar 2014 17:23:23 +0000 In-Reply-To: <5321C024.1070703@tycho.nsa.gov> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Daniel De Graaf , Jan Beulich Cc: xen-devel@lists.xenproject.org, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-03-13 at 10:26 -0400, Daniel De Graaf wrote: > On 03/12/2014 12:16 PM, Julien Grall wrote: Julien, Did you mean =n in the subject? > > The commit f7d29f7b "flask: add compat mode guest support" introduces > > build breakage on ARM when XSM is enabled. It's because ARM doesn't use > > compat mode. > > > > flask_op.c:794:34: fatal error: compat/event_channel.h: No such file or directory > > #include > > > > Signed-off-by: Julien Grall > > Cc: Daniel De Graaf > > Acked-by: Daniel De Graaf > > > --- > > xen/xsm/flask/flask_op.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/xen/xsm/flask/flask_op.c b/xen/xsm/flask/flask_op.c > > index 3b84679..3eb3a01 100644 > > --- a/xen/xsm/flask/flask_op.c > > +++ b/xen/xsm/flask/flask_op.c > > @@ -785,7 +785,7 @@ ret_t do_flask_op(XEN_GUEST_HANDLE_PARAM(xsm_op_t) u_flask_op) > > return rv; > > } > > > > -#ifndef COMPAT > > +#if !defined(COMPAT) && defined(CONFIG_COMPAT) I don't see this construct very much in the existing code. It looks like the common idiom is just #ifdef CONFIG_COMPAT. Jan, what's the right thing to do here? Ian.