From: "Jan Beulich" Subject: Re: [RFC 08/14] xen/xsm: flask: Rename variable "bool" in "b" Date: Thu, 13 Mar 2014 13:57:16 +0000 Message-ID: <5321C74C0200007800123B73@nat28.tlf.novell.com> References: <1394640969-25583-1-git-send-email-julien.grall@linaro.org> <1394640969-25583-9-git-send-email-julien.grall@linaro.org> <53208AD0.8060606@citrix.com> <5321AFE5.7050300@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WO68M-0001wX-KL for xen-devel@lists.xenproject.org; Thu, 13 Mar 2014 13:57:18 +0000 In-Reply-To: <5321AFE5.7050300@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: ian.campbell@citrix.com, Andrew Cooper , tim@xen.org, stefano.stabellini@citrix.com, xen-devel@lists.xenproject.org, Daniel De Graaf List-Id: xen-devel@lists.xenproject.org >>> On 13.03.14 at 14:17, Julien Grall wrote: > Hi Andrew, > > On 03/12/2014 04:26 PM, Andrew Cooper wrote: >> On 12/03/14 16:16, Julien Grall wrote: >>> On ARM, the compilation is failing with the following error: >>> In file included from flask_op.c:21:0: >>> ./include/conditional.h:24:43: error: two or more data types in declaration > specifiers >>> ./include/conditional.h:25:42: error: two or more data types in declaration > specifiers >>> >>> Signed-off-by: Julien Grall >>> Cc: Daniel De Graaf >> >> I am curious as to why this works on x86. The name 'bool' is specified >> as an alias for '_Bool' by C99/stdboot.h > > It's because ARM include indirectly stdbool.h via xen/device_tree.h. > I've tried to add "#include " in conditional.h and I get > the same compilation error. And (at least so far) this isn't intended to be included by arbitrary code, it exists solely to support code shared with the tools (e.g. common/libelf/). Which isn't to say that I mind the change - it's valid cleanup after all. Jan