From: Wei Liu <wei.liu2@citrix.com>
To: Julien Grall <julien.grall@arm.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Wei Liu <wei.liu2@citrix.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>, Tim Deegan <tim@xen.org>,
Jan Beulich <JBeulich@suse.com>,
Shannon Zhao <zhaoshenglong@huawei.com>,
xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [PATCH] pub-headers: reduce C99 dependencies
Date: Thu, 29 Sep 2016 20:33:56 +0100 [thread overview]
Message-ID: <20160929193356.GR16004@citrix.com> (raw)
In-Reply-To: <dc2d3cb0-3124-36cb-c754-8aca6b3f6513@arm.com>
On Thu, Sep 29, 2016 at 12:22:37PM -0700, Julien Grall wrote:
>
>
> On 29/09/2016 12:11, Julien Grall wrote:
> >Hi Jan,
> >
> >On 28/09/2016 23:04, Jan Beulich wrote:
> >>>>>On 28.09.16 at 21:42, <julien.grall@arm.com> wrote:
> >>>Hi Jan,
> >>>
> >>>On 28/09/2016 05:00, Jan Beulich wrote:
> >>>>For consumers not using (fully) C99-aware compilers, limit the number
> >>>>of places where tweaking of the headers would be necessary: Introduce
> >>>>and use xen_mk_ullong(), allowing its helper macro to be overridden at
> >>>>once.
> >>>>
> >>>>For now don't touch public/io/, which also has a few offenders.
> >>>>
> >>>>The need to include xen.h in hvm/e820.h demonstrates that it is a bad
> >>>>idea to include public headers first thing - arch/x86/hvm/mtrr.c needs
> >>>>adjustment just because of this.
> >>>>
> >>>>Signed-off-by: Jan Beulich <jbeulich@suse.com>
> >>>>---
> >>>>I wonder why all those ARM constants carry the ULL suffix despite only
> >>>>two of them actually exceeding 32 significant bits.
> >>>
> >>>I am not the author of the code, but I think it was to declare all the
> >>>constants of a given set uniformed.
> >>>
> >>>For instance all the GUEST_* constants are used to define the layout of
> >>>the guest. This may be shuffle in this future (this is not part of ABI)
> >>
> >>Oh, they're in a Xen/tools only section (the #endif could really be
> >>annotated to help spot this) - in that case I could as well leave them
> >>alone. Any preference?
> >
> >Correct. I can send a patch to annotate the #endif.
>
> It looks like that I did not reply to your question. Do we expect the
> toolstack to always C99 standard? If not, then we should keep the
> xen_mk_ullong.
>
> I am fine either way.
>
We have -std=gnu99 in top-level Config.mk -- both xen and tools will be
built with that.
Wei.
> Cheers,
>
> --
> Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-09-29 19:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 12:00 [PATCH] pub-headers: reduce C99 dependencies Jan Beulich
2016-09-28 13:31 ` George Dunlap
2016-09-28 13:49 ` Jan Beulich
2016-09-28 14:04 ` Wei Liu
2016-09-28 14:14 ` Jan Beulich
2016-09-28 14:17 ` Wei Liu
2016-09-28 19:42 ` Julien Grall
2016-09-29 6:04 ` Jan Beulich
2016-09-29 19:11 ` Julien Grall
2016-09-29 19:22 ` Julien Grall
2016-09-29 19:33 ` Wei Liu [this message]
2016-09-30 9:05 ` Jan Beulich
2016-09-30 9:14 ` Wei Liu
2016-09-29 9:41 ` Ian Jackson
2016-09-29 19:15 ` Julien Grall
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=20160929193356.GR16004@citrix.com \
--to=wei.liu2@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.org \
--cc=zhaoshenglong@huawei.com \
/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;
as well as URLs for NNTP newsgroup(s).